summaryrefslogtreecommitdiff
path: root/include/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-10-26 19:16:59 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2020-11-06 06:29:10 +0300
commitda094e0f1b226124078dc406712264ba9533d49f (patch)
tree7bba3aad62a3bc6c9d1b254ea706a6992870c938 /include/crypto
parent77fdd94f091f88b045e4f45ea94cac463cbd3221 (diff)
downloadlinux-da094e0f1b226124078dc406712264ba9533d49f.tar.xz
crypto: aead - add crypto_aead_driver_name()
Add crypto_aead_driver_name(), which is analogous to crypto_skcipher_driver_name(). Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/aead.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/crypto/aead.h b/include/crypto/aead.h
index c32a6f5664e9..fcc12c593ef8 100644
--- a/include/crypto/aead.h
+++ b/include/crypto/aead.h
@@ -191,6 +191,11 @@ static inline void crypto_free_aead(struct crypto_aead *tfm)
crypto_destroy_tfm(tfm, crypto_aead_tfm(tfm));
}
+static inline const char *crypto_aead_driver_name(struct crypto_aead *tfm)
+{
+ return crypto_tfm_alg_driver_name(crypto_aead_tfm(tfm));
+}
+
static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm)
{
return container_of(crypto_aead_tfm(tfm)->__crt_alg,