<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/caam/caamalg.c, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-01-13T01:56:53Z</updated>
<entry>
<title>crypto: caam - fix AEAD givenc descriptors</title>
<updated>2017-01-13T01:56:53Z</updated>
<author>
<name>Alex Porosanu</name>
</author>
<published>2016-11-09T08:46:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9e19c28455b3c1451081bb673ea168fb1a1a8b93'/>
<id>urn:sha1:9e19c28455b3c1451081bb673ea168fb1a1a8b93</id>
<content type='text'>
[ Upstream commit d128af17876d79b87edf048303f98b35f6a53dbc ]

The AEAD givenc descriptor relies on moving the IV through the
output FIFO and then back to the CTX2 for authentication. The
SEQ FIFO STORE could be scheduled before the data can be
read from OFIFO, especially since the SEQ FIFO LOAD needs
to wait for the SEQ FIFO LOAD SKIP to finish first. The
SKIP takes more time when the input is SG than when it's
a contiguous buffer. If the SEQ FIFO LOAD is not scheduled
before the STORE, the DECO will hang waiting for data
to be available in the OFIFO so it can be transferred to C2.
In order to overcome this, first force transfer of IV to C2
by starting the "cryptlen" transfer first and then starting to
store data from OFIFO to the output buffer.

Fixes: 1acebad3d8db8 ("crypto: caam - faster aead implementation")
Cc: &lt;stable@vger.kernel.org&gt; # 3.2+
Signed-off-by: Alex Porosanu &lt;alexandru.porosanu@nxp.com&gt;
Signed-off-by: Horia Geantă &lt;horia.geanta@nxp.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
</content>
</entry>
<entry>
<title>crypto: caam - remove dead code</title>
<updated>2015-01-26T00:34:23Z</updated>
<author>
<name>Cristian Stoica</name>
</author>
<published>2015-01-21T09:53:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35b82e5540eef2c08f607b9794d68849ebfb7d06'/>
<id>urn:sha1:35b82e5540eef2c08f607b9794d68849ebfb7d06</id>
<content type='text'>
- assoc_nents and src_nents are never zero when all_contig is false
- iv_contig is zero on the else branch

Signed-off-by: Cristian Stoica &lt;cristian.stoica@freescale.com&gt;
Reviewed-by: Richard Schmitt &lt;richard.schmitt@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - add support for givencrypt cbc(des) and cbc(des3_ede)</title>
<updated>2014-11-12T14:14:32Z</updated>
<author>
<name>Catalin Vasile</name>
</author>
<published>2014-11-11T14:18:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff2c3a3b8e57d088dcf740ab72f4f16eb2132257'/>
<id>urn:sha1:ff2c3a3b8e57d088dcf740ab72f4f16eb2132257</id>
<content type='text'>
Merge DES Cipher Block Chaining mode (CBC) and Triple DES Cipher Block
Chaining mode (CBC) algorithms from ablkcipher to givencrypt.

Signed-off-by: Catalin Vasile &lt;catalin.vasile@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - add support for givencrypt cbc(aes) and rfc3686(ctr(aes))</title>
<updated>2014-11-06T15:15:05Z</updated>
<author>
<name>Catalin Vasile</name>
</author>
<published>2014-10-31T10:45:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7222d1a3410388c8e21a5028ba2beb498938b57f'/>
<id>urn:sha1:7222d1a3410388c8e21a5028ba2beb498938b57f</id>
<content type='text'>
Add support for one-shot givencrypt algorithms.
Givencrypt algorithms will generate their IV and encrypt data
within the same shared job descriptors.
Current algorithms merged from ablkcipher to givencrypt are:
 - AES Cipher Block Chaining (CBC)
 - AES Counter Mode (CTR) compliant with RFC3686

Signed-off-by: Catalin Vasile &lt;catalin.vasile@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - add support for rfc3686 with authenc md5, sha1 and sha2</title>
<updated>2014-11-06T15:15:04Z</updated>
<author>
<name>Catalin Vasile</name>
</author>
<published>2014-10-31T10:45:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=daebc465858867f48ee86a88f56020c3fe0d96f6'/>
<id>urn:sha1:daebc465858867f48ee86a88f56020c3fe0d96f6</id>
<content type='text'>
Add support for AES Counter Mode (CTR) compliant with RFC3686 to be
used along with authenc algorithms (md5, sha1, sha224, sha256, sha384,
sha512) as one-shot aead algorithms.

Signed-off-by: Catalin Vasile &lt;catalin.vasile@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - add support for rfc3686(ctr(aes))</title>
<updated>2014-11-06T15:15:04Z</updated>
<author>
<name>Catalin Vasile</name>
</author>
<published>2014-10-31T10:45:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5f57cffce8af8d2c11204b4e289543021c73766'/>
<id>urn:sha1:a5f57cffce8af8d2c11204b4e289543021c73766</id>
<content type='text'>
Add support for Advanced Encryption Standard (AES) in Counter Mode (CTR)
as provided in IPsec implementation standard RFC3686.

ablkcipher shared descriptors now save context registers after job
execution. This is used to load Nonce specific to RFC3686 only at
first execution of shared job descriptor.

Signed-off-by: Catalin Vasile &lt;catalin.vasile@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - add support for ctr(aes)</title>
<updated>2014-11-06T15:15:04Z</updated>
<author>
<name>Catalin Vasile</name>
</author>
<published>2014-10-31T10:45:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b22f6c547f90e1a41e3f39ad8d569e3efc74d42'/>
<id>urn:sha1:2b22f6c547f90e1a41e3f39ad8d569e3efc74d42</id>
<content type='text'>
Add support for AES working in Counter Mode

Signed-off-by: Catalin Vasile &lt;catalin.vasile@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - add support for rfc4543(gcm(aes))</title>
<updated>2014-11-06T15:15:03Z</updated>
<author>
<name>Tudor Ambarus</name>
</author>
<published>2014-10-30T16:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5d0429a30f06845af78a696de59e3e8d21252846'/>
<id>urn:sha1:5d0429a30f06845af78a696de59e3e8d21252846</id>
<content type='text'>
Add AES-GMAC as an IPSec ESP mechanism to provide
data origin authentication, but not confidentiality.
This method is referred as ENCR_NULL_AUTH_AES_GMAC.

Signed-off-by: Tudor Ambarus &lt;tudor.ambarus@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - fix output sequence contiguity check</title>
<updated>2014-11-06T15:15:00Z</updated>
<author>
<name>Tudor Ambarus</name>
</author>
<published>2014-10-24T15:13:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=19167bfd8ae72ceeb41930343227bf8f5fb19a66'/>
<id>urn:sha1:19167bfd8ae72ceeb41930343227bf8f5fb19a66</id>
<content type='text'>
This patch fixes the assumption that output sequence is not contiguous
when input sequence is not contiguous and in-place encryption is done.
Output sequence does not need to be contiguous with associated data.

Signed-off-by: Tudor Ambarus &lt;tudor.ambarus@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: caam - add support for rfc4106(gcm(aes))</title>
<updated>2014-10-24T14:52:28Z</updated>
<author>
<name>Tudor Ambarus</name>
</author>
<published>2014-10-23T13:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bac68f2c9a43e60a70e27c0c75aaca7128b6271d'/>
<id>urn:sha1:bac68f2c9a43e60a70e27c0c75aaca7128b6271d</id>
<content type='text'>
Add Advanced Encryption Standard (AES) in Galois/Counter Mode (GCM)
as an IPsec Encapsulating Security Payload (ESP) mechanism
to provide confidentiality and data origin authentication.

Signed-off-by: Tudor Ambarus &lt;tudor.ambarus@freescale.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
