mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue