projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1e9b3b
)
crypto: skcipher - Add helper to retrieve driver name
author
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 26 Jan 2016 14:14:36 +0000
(22:14 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 27 Jan 2016 12:35:22 +0000
(20:35 +0800)
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: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/skcipher.h
patch
|
blob
|
blame
|
history
diff --git
a/include/crypto/skcipher.h
b/include/crypto/skcipher.h
index f7a03a17bc1db9f7eea77b91a88c96702c243b5f..5bb70565b13a3377361f154b4603607b7963efaf 100644
(file)
--- a/
include/crypto/skcipher.h
+++ b/
include/crypto/skcipher.h
@@
-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