crypto: picoxcell - Use crypto_aead_set_reqsize helper
This patch uses the crypto_aead_set_reqsize helper to avoid directly touching the internals of aead. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
71b311d610
commit
9611ef63c2
1 changed files with 2 additions and 1 deletions
|
@ -790,7 +790,8 @@ static int spacc_aead_cra_init(struct crypto_tfm *tfm)
|
||||||
|
|
||||||
get_random_bytes(ctx->salt, sizeof(ctx->salt));
|
get_random_bytes(ctx->salt, sizeof(ctx->salt));
|
||||||
|
|
||||||
tfm->crt_aead.reqsize = sizeof(struct spacc_req);
|
crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
|
||||||
|
sizeof(struct spacc_req));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue