summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/omap-aes.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2019-11-05 15:01:03 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-12-11 09:36:59 +0100
commit12adf9d63ec3af674f1e3145308a29daffb73887 (patch)
tree2fafe8baa4931a219e018e11eabd3c81146a2a3e /drivers/crypto/omap-aes.h
parentcrypto: omap-aes-gcm - deal with memory allocation failure (diff)
downloadlinux-12adf9d63ec3af674f1e3145308a29daffb73887.tar.xz
linux-12adf9d63ec3af674f1e3145308a29daffb73887.zip
crypto: omap-aes-gcm - add missing .setauthsize hooks
GCM only permits certain tag lengths, so populate the .setauthsize hooks which ensure that only permitted sizes are accepted by the implementation. Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Tero Kristo <t-kristo@ti.com> Tested-by: Tero Kristo <t-kristo@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/omap-aes.h')
-rw-r--r--drivers/crypto/omap-aes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/crypto/omap-aes.h b/drivers/crypto/omap-aes.h
index 2d3575231e31..1bcca7957e92 100644
--- a/drivers/crypto/omap-aes.h
+++ b/drivers/crypto/omap-aes.h
@@ -202,8 +202,11 @@ int omap_aes_4106gcm_setkey(struct crypto_aead *tfm, const u8 *key,
unsigned int keylen);
int omap_aes_gcm_encrypt(struct aead_request *req);
int omap_aes_gcm_decrypt(struct aead_request *req);
+int omap_aes_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize);
int omap_aes_4106gcm_encrypt(struct aead_request *req);
int omap_aes_4106gcm_decrypt(struct aead_request *req);
+int omap_aes_4106gcm_setauthsize(struct crypto_aead *parent,
+ unsigned int authsize);
int omap_aes_write_ctrl(struct omap_aes_dev *dd);
int omap_aes_crypt_dma_start(struct omap_aes_dev *dd);
int omap_aes_crypt_dma_stop(struct omap_aes_dev *dd);