<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/crypto/ccree/cc_hash.c, branch linux-5.3.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-5.3.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-5.3.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2019-04-25T07:38:15+00:00</updated>
<entry>
<title>crypto: ccree - don't map MAC key on stack</title>
<updated>2019-04-25T07:38:15+00:00</updated>
<author>
<name>Gilad Ben-Yossef</name>
<email>gilad@benyossef.com</email>
</author>
<published>2019-04-18T13:39:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=874e163759f27e0a9988c5d1f4605e3f25564fd2'/>
<id>urn:sha1:874e163759f27e0a9988c5d1f4605e3f25564fd2</id>
<content type='text'>
The MAC hash key might be passed to us on stack. Copy it to
a slab buffer before mapping to gurantee proper DMA mapping.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - use correct internal state sizes for export</title>
<updated>2019-04-25T07:38:15+00:00</updated>
<author>
<name>Gilad Ben-Yossef</name>
<email>gilad@benyossef.com</email>
</author>
<published>2019-04-18T13:39:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f3df82b468f00cca241d96ee3697c9a5e7fb6bd0'/>
<id>urn:sha1:f3df82b468f00cca241d96ee3697c9a5e7fb6bd0</id>
<content type='text'>
We were computing the size of the import buffer based on the digest size
but the 318 and 224 byte variants use 512 and 256 bytes internal state
sizes respectfully, thus causing the import buffer to overrun.

Fix it by using the right sizes.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Cc: stable@vger.kernel.org # v4.19+
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:14+00:00</updated>
<author>
<name>Gilad Ben-Yossef</name>
<email>gilad@benyossef.com</email>
</author>
<published>2019-04-18T13:38:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.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>
<entry>
<title>crypto: ccree - use proper callback completion api</title>
<updated>2019-04-25T07:38:14+00:00</updated>
<author>
<name>Gilad Ben-Yossef</name>
<email>gilad@benyossef.com</email>
</author>
<published>2019-04-18T13:38:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=151ded73a6c4cfaa96a563bb7a2db5341d157188'/>
<id>urn:sha1:151ded73a6c4cfaa96a563bb7a2db5341d157188</id>
<content type='text'>
Use proper hash callback completion API instead of open coding it.

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: ccree - fix backlog notifications</title>
<updated>2019-04-25T07:38:14+00:00</updated>
<author>
<name>Gilad Ben-Yossef</name>
<email>gilad@benyossef.com</email>
</author>
<published>2019-04-18T13:38:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a108f9311c01271bccad45d321cf9ddfac852c4b'/>
<id>urn:sha1:a108f9311c01271bccad45d321cf9ddfac852c4b</id>
<content type='text'>
We were doing backlog notification callbacks via a cipher/hash/aead
request structure cast to the base structure, which may or may not
work based on how the structure is laid in memory and is not safe.

Fix it by delegating the backlog notification to the appropriate
internal callbacks which are type aware.

Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - add support for CryptoCell 703</title>
<updated>2018-12-07T06:14:59+00:00</updated>
<author>
<name>Gilad Ben-Yossef</name>
<email>gilad@benyossef.com</email>
</author>
<published>2018-11-13T09:40:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1c876a90e25398a7396ff4de9074ab530e7892b4'/>
<id>urn:sha1:1c876a90e25398a7396ff4de9074ab530e7892b4</id>
<content type='text'>
Add support for Arm TrustZone CryptoCell 703.
The 703 is a variant of the CryptoCell 713 that supports only
algorithms certified by the Chinesse Office of the State Commercial
Cryptography Administration (OSCCA).

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: ccree - add SM3 support</title>
<updated>2018-11-09T09:37:58+00:00</updated>
<author>
<name>Yael Chemla</name>
<email>yael.chemla@foss.arm.com</email>
</author>
<published>2018-10-18T12:59:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=927574e0e85da61f84dcda15d5b6a2baa06cda46'/>
<id>urn:sha1:927574e0e85da61f84dcda15d5b6a2baa06cda46</id>
<content type='text'>
Add support for SM3 cipher in CryptoCell 713.

Signed-off-by: Yael Chemla &lt;yael.chemla@foss.arm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - modify set_cipher_mode usage from cc_hash</title>
<updated>2018-11-09T09:36:49+00:00</updated>
<author>
<name>Yael Chemla</name>
<email>yael.chemla@foss.arm.com</email>
</author>
<published>2018-10-18T12:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=18a1dc1fd56b4a5b468ad5bf984a2b0ea5ee8c69'/>
<id>urn:sha1:18a1dc1fd56b4a5b468ad5bf984a2b0ea5ee8c69</id>
<content type='text'>
encapsulate set_cipher_mode call with another api,
preparation for specific hash behavior as needed in later patches
when SM3 introduced.

Signed-off-by: Yael Chemla &lt;yael.chemla@foss.arm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - adjust hash length to suit certain context specifics</title>
<updated>2018-11-09T09:36:49+00:00</updated>
<author>
<name>Yael Chemla</name>
<email>yael.chemla@foss.arm.com</email>
</author>
<published>2018-10-18T12:59:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f1e52fd0fbd67fbf342932506cd7a6e27c090c5f'/>
<id>urn:sha1:f1e52fd0fbd67fbf342932506cd7a6e27c090c5f</id>
<content type='text'>
Adjust hash length such that it will not be fixed and general for all algs.
Instead make it suitable for certain context information.
This is preparation for SM3 support.

Signed-off-by: Yael Chemla &lt;yael.chemla@foss.arm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - fix finup</title>
<updated>2018-07-08T16:33:35+00:00</updated>
<author>
<name>Hadar Gat</name>
<email>hadar.gat@arm.com</email>
</author>
<published>2018-07-01T07:02:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=26497e72a1aba4d27c50c4cbf0182db94e58a590'/>
<id>urn:sha1:26497e72a1aba4d27c50c4cbf0182db94e58a590</id>
<content type='text'>
finup() operation was incorrect, padding was missing.
Fix by setting the ccree HW to enable padding.

Signed-off-by: Hadar Gat &lt;hadar.gat@arm.com&gt;
[ gilad@benyossef.com: refactored for better code sharing ]
Signed-off-by: Gilad Ben-Yossef &lt;gilad@benyossef.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
</feed>
