<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/crypto/ccree/cc_hash.c, branch linux-5.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2023-01-18T10:41:18Z</updated>
<entry>
<title>crypto: ccree - swap SHA384 and SHA512 larval hashes at build time</title>
<updated>2023-01-18T10:41:18Z</updated>
<author>
<name>Geert Uytterhoeven</name>
</author>
<published>2020-02-11T18:18:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca438aa466b8e5010219d3300f65bc8a984c4b0a'/>
<id>urn:sha1:ca438aa466b8e5010219d3300f65bc8a984c4b0a</id>
<content type='text'>
[ Upstream commit f08b58501c74d6ec0828b55a0d4e0b2e840c2b9e ]

Due to the way the hardware works, every double word in the SHA384 and
SHA512 larval hashes must be swapped.  Currently this is done at run
time, during driver initialization.

However, this swapping can easily be done at build time.  Treating each
double word as two words has the benefit of changing the larval hashes'
types from u64[] to u32[], like for all other hashes, and allows
dropping the casts and size doublings when calling cc_set_sram_desc().

Signed-off-by: Geert Uytterhoeven &lt;geert+renesas@glider.be&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Stable-dep-of: 4f1c596df706 ("crypto: ccree - Remove debugfs when platform_driver_register failed")
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: ccree - Rename arrays to avoid conflict with crypto/sha256.h</title>
<updated>2019-09-05T04:54:54Z</updated>
<author>
<name>Hans de Goede</name>
</author>
<published>2019-09-01T20:35:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e55d8a75c60207e3c261c847d03f832344544712'/>
<id>urn:sha1:e55d8a75c60207e3c261c847d03f832344544712</id>
<content type='text'>
Rename the algo_init arrays to cc_algo_init so that they do not conflict
with the functions declared in crypto/sha256.h.

This is a preparation patch for folding crypto/sha256.h into crypto/sha.h.

Signed-off-by: Hans de Goede &lt;hdegoede@redhat.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 - don't map MAC key on stack</title>
<updated>2019-04-25T07:38:15Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-04-18T13:39:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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:15Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-04-18T13:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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: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>
<entry>
<title>crypto: ccree - use proper callback completion api</title>
<updated>2019-04-25T07:38:14Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-04-18T13:38:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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:14Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2019-04-18T13:38:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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:59Z</updated>
<author>
<name>Gilad Ben-Yossef</name>
</author>
<published>2018-11-13T09:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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:58Z</updated>
<author>
<name>Yael Chemla</name>
</author>
<published>2018-10-18T12:59:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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:49Z</updated>
<author>
<name>Yael Chemla</name>
</author>
<published>2018-10-18T12:59:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.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>
</feed>
