<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/talitos.c, branch linux-4.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.9.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-09-26T11:36:17Z</updated>
<entry>
<title>crypto: talitos - fix max key size for sha384 and sha512</title>
<updated>2021-09-26T11:36:17Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2019-06-12T05:49:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17b219f7ff519b912b50326a17de42cc9ef449f9'/>
<id>urn:sha1:17b219f7ff519b912b50326a17de42cc9ef449f9</id>
<content type='text'>
commit 192125ed5ce62afba24312d8e7a0314577565b4a upstream.

Below commit came with a typo in the CONFIG_ symbol, leading
to a permanently reduced max key size regarless of the driver
capabilities.

Reported-by: Horia Geantă &lt;horia.geanta@nxp.com&gt;
Fixes: b8fbdc2bc4e7 ("crypto: talitos - reduce max key size for SEC1")
Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Reviewed-by: Horia Geantă &lt;horia.geanta@nxp.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Nobuhiro Iwamatsu (CIP) &lt;nobuhiro1.iwamatsu@toshiba.co.jp&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>crypto: talitos - reduce max key size for SEC1</title>
<updated>2021-09-22T09:42:57Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2019-05-21T13:34:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ae9be948390cb04b2c1959c2b14400cfccb2a29'/>
<id>urn:sha1:0ae9be948390cb04b2c1959c2b14400cfccb2a29</id>
<content type='text'>
commit b8fbdc2bc4e71b62646031d5df5f08aafe15d5ad upstream.

SEC1 doesn't support SHA384/512, so it doesn't require
longer keys.

This patch reduces the max key size when the driver
is built for SEC1 only.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Fixes: 03d2c5114c95 ("crypto: talitos - Extend max key length for SHA384/512-HMAC and AEAD")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>crypto: talitos - Fix return type of current_desc_hdr()</title>
<updated>2020-12-29T12:44:53Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-10-08T09:34:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ab86255f31059782a723701dedef9f34fd7d74b5'/>
<id>urn:sha1:ab86255f31059782a723701dedef9f34fd7d74b5</id>
<content type='text'>
[ Upstream commit 0237616173fd363a54bd272aa3bd376faa1d7caa ]

current_desc_hdr() returns a u32 but in fact this is a __be32,
leading to a lot of sparse warnings.

Change the return type to __be32 and ensure it is handled as
sure by the caller.

Fixes: 3e721aeb3df3 ("crypto: talitos - handle descriptor not found in error path")
Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: talitos - fix ECB and CBC algs ivsize</title>
<updated>2020-06-20T08:24:08Z</updated>
<author>
<name>Su Kang Yin</name>
</author>
<published>2020-06-11T11:50:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=adbbd088ab97077fa0529740ec43185c7fb7cdd5'/>
<id>urn:sha1:adbbd088ab97077fa0529740ec43185c7fb7cdd5</id>
<content type='text'>
commit e1de42fdfc6a ("crypto: talitos - fix ECB algs ivsize")
wrongly modified CBC algs ivsize instead of ECB aggs ivsize.

This restore the CBC algs original ivsize of removes ECB's ones.

Fixes: e1de42fdfc6a ("crypto: talitos - fix ECB algs ivsize")
Signed-off-by: Su Kang Yin &lt;cantona@cantona.net&gt;
Reviewed-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto: talitos - fix missing break in switch statement</title>
<updated>2019-10-05T10:30:07Z</updated>
<author>
<name>Gustavo A. R. Silva</name>
</author>
<published>2019-09-09T05:29:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c58ff323931ffb8b1ae423392dce7c21c7f2bfba'/>
<id>urn:sha1:c58ff323931ffb8b1ae423392dce7c21c7f2bfba</id>
<content type='text'>
commit 5fc194ea6d34dfad9833d3043ce41d6c52aff39a upstream.

Add missing break statement in order to prevent the code from falling
through to case CRYPTO_ALG_TYPE_AHASH.

Fixes: aeb4c132f33d ("crypto: talitos - Convert to new AEAD interface")
Cc: stable@vger.kernel.org
Reported-by: kbuild test robot &lt;lkp@intel.com&gt;
Signed-off-by: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Reviewed-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto: talitos - HMAC SNOOP NO AFEU mode requires SW icv checking.</title>
<updated>2019-09-21T05:14:07Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2019-05-21T13:34:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=45665652447bad5af4ac3632d1ba6235da296ccb'/>
<id>urn:sha1:45665652447bad5af4ac3632d1ba6235da296ccb</id>
<content type='text'>
commit 4bbfb839259a9c96a0be872e16f7471b7136aee5 upstream.

In that mode, hardware ICV verification is not supported.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Fixes: 7405c8d7ff97 ("crypto: talitos - templates for AEAD using HMAC_SNOOP_NO_AFEU")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto: talitos - Do not modify req-&gt;cryptlen on decryption.</title>
<updated>2019-09-21T05:14:07Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2019-05-21T13:34:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d3e16cd9418570f6ebfb254a9544eb3291727935'/>
<id>urn:sha1:d3e16cd9418570f6ebfb254a9544eb3291727935</id>
<content type='text'>
commit 7ede4c36cf7c6516986ee9d75b197c8bf73ea96f upstream.

For decrypt, req-&gt;cryptlen includes the size of the authentication
part while all functions of the driver expect cryptlen to be
the size of the encrypted data.

As it is not expected to change req-&gt;cryptlen, this patch
implements local calculation of cryptlen.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Fixes: 9c4a79653b35 ("crypto: talitos - Freescale integrated security engine (SEC) driver")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto: talitos - fix ECB algs ivsize</title>
<updated>2019-09-21T05:14:07Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2019-05-21T13:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1de42fdfc6aca5b248483fab639a02328c96d53'/>
<id>urn:sha1:e1de42fdfc6aca5b248483fab639a02328c96d53</id>
<content type='text'>
commit d84cc9c9524ec5973a337533e6d8ccd3e5f05f2b upstream.

ECB's ivsize must be 0.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Fixes: 5e75ae1b3cef ("crypto: talitos - add new crypto modes")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto: talitos - check data blocksize in ablkcipher.</title>
<updated>2019-09-21T05:14:07Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2019-05-21T13:34:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=487c1991f3140378a5b05da2939f9d331f8b7793'/>
<id>urn:sha1:487c1991f3140378a5b05da2939f9d331f8b7793</id>
<content type='text'>
commit ee483d32ee1a1a7f7d7e918fbc350c790a5af64a upstream.

When data size is not a multiple of the alg's block size,
the SEC generates an error interrupt and dumps the registers.
And for NULL size, the SEC does just nothing and the interrupt
is awaited forever.

This patch ensures the data size is correct before submitting
the request to the SEC engine.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Fixes: 4de9d0b547b9 ("crypto: talitos - Add ablkcipher algorithms")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>crypto: talitos - fix CTR alg blocksize</title>
<updated>2019-09-21T05:14:06Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2019-05-21T13:34:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f065ad3122ed65f164ca8077492371a65c2b069c'/>
<id>urn:sha1:f065ad3122ed65f164ca8077492371a65c2b069c</id>
<content type='text'>
commit b9a05b6041cb9810a291315569b2af0d63c3680a upstream.

CTR has a blocksize of 1.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@c-s.fr&gt;
Fixes: 5e75ae1b3cef ("crypto: talitos - add new crypto modes")
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
</feed>
