<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/ccree/cc_cipher.c, branch linux-5.6.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.6.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.6.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-01-22T08:21:10Z</updated>
<entry>
<title>crypto: ccree - fix FDE descriptor sequence</title>
<updated>2020-01-22T08:21:10Z</updated>
<author>
<name>Ofir Drang</name>
</author>
<published>2020-01-16T10:14:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c83e8ec4d51ac4cc58482ed04297e6882b32a09'/>
<id>urn:sha1:5c83e8ec4d51ac4cc58482ed04297e6882b32a09</id>
<content type='text'>
In FDE mode (xts, essiv and bitlocker) the cryptocell hardware requires
that the the XEX key will be loaded after Key1.

Signed-off-by: Ofir Drang &lt;ofir.drang@arm.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - turn errors to debug msgs</title>
<updated>2020-01-22T08:21:09Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2020-01-16T10:14:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c7b31c88da242153b3c2a2afe8486ae5c5f36556'/>
<id>urn:sha1:c7b31c88da242153b3c2a2afe8486ae5c5f36556</id>
<content type='text'>
We have several loud error log messages that are already reported
via the normal return code mechanism and produce a lot of noise
when the new testmgr extra test are enabled. Turn these into
debug only messages

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: remove CRYPTO_TFM_RES_BAD_KEY_LEN</title>
<updated>2020-01-09T03:30:53Z</updated>
<author>
<name>Eric Biggers</name>
</author>
<published>2019-12-31T03:19:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=674f368a952c48ede71784935a799a5205b92b6c'/>
<id>urn:sha1:674f368a952c48ede71784935a799a5205b92b6c</id>
<content type='text'>
The CRYPTO_TFM_RES_BAD_KEY_LEN flag was apparently meant as a way to
make the -&gt;setkey() functions provide more information about errors.

However, no one actually checks for this flag, which makes it pointless.

Also, many algorithms fail to set this flag when given a bad length key.
Reviewing just the generic implementations, this is the case for
aes-fixed-time, cbcmac, echainiv, nhpoly1305, pcrypt, rfc3686, rfc4309,
rfc7539, rfc7539esp, salsa20, seqiv, and xcbc.  But there are probably
many more in arch/*/crypto/ and drivers/crypto/.

Some algorithms can even set this flag when the key is the correct
length.  For example, authenc and authencesn set it when the key payload
is malformed in any way (not just a bad length), the atmel-sha and ccree
drivers can set it if a memory allocation fails, and the chelsio driver
sets it for bad auth tag lengths, not just bad key lengths.

So even if someone actually wanted to start checking this flag (which
seems unlikely, since it's been unused for a long time), there would be
a lot of work needed to get it working correctly.  But it would probably
be much better to go back to the drawing board and just define different
return values, like -EINVAL if the key is invalid for the algorithm vs.
-EKEYREJECTED if the key was rejected by a policy like "no weak keys".
That would be much simpler, less error-prone, and easier to test.

So just remove this flag.

Signed-off-by: Eric Biggers &lt;ebiggers@google.com&gt;
Reviewed-by: Horia Geantă &lt;horia.geanta@nxp.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: remove CRYPTO_TFM_RES_BAD_BLOCK_LEN</title>
<updated>2020-01-09T03:30:52Z</updated>
<author>
<name>Eric Biggers</name>
</author>
<published>2019-12-31T03:19:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c925e8b10a5f43f220755aceb9d5f14b2f4e2c5'/>
<id>urn:sha1:5c925e8b10a5f43f220755aceb9d5f14b2f4e2c5</id>
<content type='text'>
The flag CRYPTO_TFM_RES_BAD_BLOCK_LEN is never checked for, and it's
only set by one driver.  And even that single driver's use is wrong
because the driver is setting the flag from -&gt;encrypt() and -&gt;decrypt()
with no locking, which is unsafe because -&gt;encrypt() and -&gt;decrypt() can
be executed by many threads in parallel on the same tfm.

Just remove this flag.

Signed-off-by: Eric Biggers &lt;ebiggers@google.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - update a stale reference to ablkcipher</title>
<updated>2019-11-17T01:02:50Z</updated>
<author>
<name>Ard Biesheuvel</name>
</author>
<published>2019-11-09T17:09:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5620eb6c9d814b1e26e53b31adb40a57dc904b35'/>
<id>urn:sha1:5620eb6c9d814b1e26e53b31adb40a57dc904b35</id>
<content type='text'>
The ccree driver does not use the ablkcipher interface but contains
a rudimentary reference to it in the naming of an unrelated macro.
Let's rename it to avoid confusion.

Acked-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Ard Biesheuvel &lt;ardb@kernel.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - enable CTS support in AES-XTS</title>
<updated>2019-09-13T11:17:58Z</updated>
<author>
<name>Uri Shir</name>
</author>
<published>2019-09-08T08:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=67caef08a71fa6506fc16be58cd594c49b0605de'/>
<id>urn:sha1:67caef08a71fa6506fc16be58cd594c49b0605de</id>
<content type='text'>
In XTS encryption/decryption the plaintext byte size
can be &gt;= AES_BLOCK_SIZE. This patch enable the AES-XTS ciphertext
stealing implementation in ccree driver.

Signed-off-by: Uri Shir &lt;uri.shir@arm.com&gt;
Acked-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree/des - switch to new verification routines</title>
<updated>2019-08-22T04:39:40Z</updated>
<author>
<name>Ard Biesheuvel</name>
</author>
<published>2019-08-15T09:00:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00cd6b233fc89463d4f4eddeb9abf1e009cc09c0'/>
<id>urn:sha1:00cd6b233fc89463d4f4eddeb9abf1e009cc09c0</id>
<content type='text'>
Signed-off-by: Ard Biesheuvel &lt;ard.biesheuvel@linaro.org&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - remove set but not used variable 'du_size'</title>
<updated>2019-05-03T06:03:30Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2019-04-28T08:28:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=50af32727509a36fc9bbb370c6f6cb14a961dc97'/>
<id>urn:sha1:50af32727509a36fc9bbb370c6f6cb14a961dc97</id>
<content type='text'>
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/crypto/ccree/cc_cipher.c: In function cc_setup_key_desc:
drivers/crypto/ccree/cc_cipher.c:645:15: warning: variable du_size set but not used [-Wunused-but-set-variable]

It is never used since introduction in
commit dd8486c75085 ("crypto: ccree - move key load desc. before flow desc.")

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - fix spelling mistake "protedcted" -&gt; "protected"</title>
<updated>2019-05-03T06:03:30Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2019-04-26T13:18:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=22e2db68e809eebe5e44315c5f8184da22ec2822'/>
<id>urn:sha1:22e2db68e809eebe5e44315c5f8184da22ec2822</id>
<content type='text'>
There is a spelling mistake in a dev_dbg message, fix it.

Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Acked-By: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - copyright header update</title>
<updated>2019-04-25T07:38:14Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-04-18T13:38:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03963caeb0dd77b1ead84a5ec913a7d28e8fe816'/>
<id>urn:sha1:03963caeb0dd77b1ead84a5ec913a7d28e8fe816</id>
<content type='text'>
This sacrificial copyright header update is offered to the legal department
as atonement for any changes made in this driver files in the course of
the current year which have not been duly recorded as such.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
