mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
crypto: qat - 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
9611ef63c2
commit
97cacb9f7a
1 changed files with 3 additions and 2 deletions
|
@ -1094,8 +1094,9 @@ static int qat_alg_aead_init(struct crypto_tfm *tfm,
|
|||
return -EFAULT;
|
||||
spin_lock_init(&ctx->lock);
|
||||
ctx->qat_hash_alg = hash;
|
||||
tfm->crt_aead.reqsize = sizeof(struct aead_request) +
|
||||
sizeof(struct qat_crypto_request);
|
||||
crypto_aead_set_reqsize(__crypto_aead_cast(tfm),
|
||||
sizeof(struct aead_request) +
|
||||
sizeof(struct qat_crypto_request));
|
||||
ctx->tfm = tfm;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue