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:
Herbert Xu 2015-05-11 17:48:08 +08:00
parent 71b311d610
commit 9611ef63c2
1 changed files with 2 additions and 1 deletions

View File

@ -790,7 +790,8 @@ static int spacc_aead_cra_init(struct crypto_tfm *tfm)
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;
}