aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r--include/linux/crypto.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
index 78508ca4b108..7e6e84cf6383 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
@@ -107,8 +107,16 @@
107#define CRYPTO_ALG_INTERNAL 0x00002000 107#define CRYPTO_ALG_INTERNAL 0x00002000
108 108
109/* 109/*
110 * Set if the algorithm has a ->setkey() method but can be used without
111 * calling it first, i.e. there is a default key.
112 */
113#define CRYPTO_ALG_OPTIONAL_KEY 0x00004000
114
115/*
110 * Transform masks and values (for crt_flags). 116 * Transform masks and values (for crt_flags).
111 */ 117 */
118#define CRYPTO_TFM_NEED_KEY 0x00000001
119
112#define CRYPTO_TFM_REQ_MASK 0x000fff00 120#define CRYPTO_TFM_REQ_MASK 0x000fff00
113#define CRYPTO_TFM_RES_MASK 0xfff00000 121#define CRYPTO_TFM_RES_MASK 0xfff00000
114 122
@@ -447,7 +455,7 @@ struct crypto_alg {
447 unsigned int cra_alignmask; 455 unsigned int cra_alignmask;
448 456
449 int cra_priority; 457 int cra_priority;
450 atomic_t cra_refcnt; 458 refcount_t cra_refcnt;
451 459
452 char cra_name[CRYPTO_MAX_ALG_NAME]; 460 char cra_name[CRYPTO_MAX_ALG_NAME];
453 char cra_driver_name[CRYPTO_MAX_ALG_NAME]; 461 char cra_driver_name[CRYPTO_MAX_ALG_NAME];