From: Eric Biggers Date: Mon, 26 Oct 2020 16:16:59 +0000 (-0700) Subject: crypto: aead - add crypto_aead_driver_name() X-Git-Tag: v5.11-rc1~199^2~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da094e0f1b226124078dc406712264ba9533d49f;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/include/crypto/aead.h b/include/crypto/aead.h index c32a6f5664e9a..fcc12c593ef8b 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,