Message ID | E1k0JtI-0006PK-BV@fornost.hmeau.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Herbert Xu |
Headers | show |
Series | crypto: skcipher - Add support for no chaining and partial chaining | expand |
diff --git a/drivers/crypto/inside-secure/safexcel_cipher.c b/drivers/crypto/inside-secure/safexcel_cipher.c index 1ac3253b7903a..ef04a394ff49d 100644 --- a/drivers/crypto/inside-secure/safexcel_cipher.c +++ b/drivers/crypto/inside-secure/safexcel_cipher.c @@ -2859,6 +2859,8 @@ struct safexcel_alg_template safexcel_alg_chacha20 = { .min_keysize = CHACHA_KEY_SIZE, .max_keysize = CHACHA_KEY_SIZE, .ivsize = CHACHA_IV_SIZE, + .chunksize = CHACHA_BLOCK_SIZE, + .final_chunksize = -1, .base = { .cra_name = "chacha20", .cra_driver_name = "safexcel-chacha20",
The chacha implementation in inside-secure does not support partial operation and therefore this patch sets its final_chunksize to -1 to mark this fact. This patch also sets the chunksize to the chacha block size. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> --- drivers/crypto/inside-secure/safexcel_cipher.c | 2 ++ 1 file changed, 2 insertions(+)