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
|
@ -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…
Reference in a new issue