mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
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>
This commit is contained in:
parent
77fdd94f09
commit
da094e0f1b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user