Thread (34 messages) 34 messages, 4 authors, 2025-06-16

Re: [PATCH 07/16] crypto: sha512 - replace sha512_generic with wrapper around SHA-512 library

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2025-06-11 02:24:45
Also in: linux-crypto, linux-mips, linux-riscv, linux-s390, lkml, sparclinux

Eric Biggers [off-list ref] wrote:
+       {
+               .base.cra_name          = "sha512",
+               .base.cra_driver_name   = "sha512-lib",
+               .base.cra_priority      = 100,
+               .base.cra_blocksize     = SHA512_BLOCK_SIZE,
+               .base.cra_module        = THIS_MODULE,
+               .digestsize             = SHA512_DIGEST_SIZE,
+               .init                   = crypto_sha512_init,
+               .update                 = crypto_sha512_update,
+               .final                  = crypto_sha512_final,
+               .digest                 = crypto_sha512_digest,
+               .descsize               = sizeof(struct sha512_ctx),
+       },
This changes the export format which breaks fallback support
for ahash drivers.

You need to retain the existing export format.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help