Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2d382a4 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: skcipher - Add helper to retrieve driver name



This patch adds the helper crypto_skcipher_driver_name which returns
the driver name of the alg object for a given tfm.  This is needed by
ecryptfs.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c1e9b3b0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -231,6 +231,12 @@ static inline int crypto_has_skcipher(const char *alg_name, u32 type,
			      crypto_skcipher_mask(mask));
}

static inline const char *crypto_skcipher_driver_name(
	struct crypto_skcipher *tfm)
{
	return crypto_tfm_alg_name(crypto_skcipher_tfm(tfm));
}

/**
 * crypto_skcipher_ivsize() - obtain IV size
 * @tfm: cipher handle