forked from Minki/linux
crypto: ixp4xx - 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
a5a2b4da01
commit
71b311d610
@ -575,7 +575,8 @@ static int init_tfm_ablk(struct crypto_tfm *tfm)
|
||||
|
||||
static int init_tfm_aead(struct crypto_tfm *tfm)
|
||||
{
|
||||
tfm->crt_aead.reqsize = sizeof(struct aead_ctx);
|
||||
crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
|
||||
sizeof(struct aead_ctx));
|
||||
return init_tfm(tfm);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user