diff options
author | James Morris <jmorris@namei.org> | 2009-03-26 17:28:11 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-03-26 17:28:11 -0400 |
commit | 1987f17d2266e882862528841429b5bf67bc8fe5 (patch) | |
tree | 5c3fbee88018ab7259a18c10e6320e575d0ed679 /include/crypto/cryptd.h | |
parent | 7198e2eeb44b3fe7cc97f997824002da47a9c644 (diff) | |
parent | 0384e2959127a56d0640505d004d8dd92f9c29f5 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'include/crypto/cryptd.h')
-rw-r--r-- | include/crypto/cryptd.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/crypto/cryptd.h b/include/crypto/cryptd.h new file mode 100644 index 000000000000..55fa7bbdbc71 --- /dev/null +++ b/include/crypto/cryptd.h | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * Software async crypto daemon | ||
3 | */ | ||
4 | |||
5 | #ifndef _CRYPTO_CRYPT_H | ||
6 | #define _CRYPTO_CRYPT_H | ||
7 | |||
8 | #include <linux/crypto.h> | ||
9 | #include <linux/kernel.h> | ||
10 | |||
11 | struct cryptd_ablkcipher { | ||
12 | struct crypto_ablkcipher base; | ||
13 | }; | ||
14 | |||
15 | static inline struct cryptd_ablkcipher *__cryptd_ablkcipher_cast( | ||
16 | struct crypto_ablkcipher *tfm) | ||
17 | { | ||
18 | return (struct cryptd_ablkcipher *)tfm; | ||
19 | } | ||
20 | |||
21 | /* alg_name should be algorithm to be cryptd-ed */ | ||
22 | struct cryptd_ablkcipher *cryptd_alloc_ablkcipher(const char *alg_name, | ||
23 | u32 type, u32 mask); | ||
24 | struct crypto_blkcipher *cryptd_ablkcipher_child(struct cryptd_ablkcipher *tfm); | ||
25 | void cryptd_free_ablkcipher(struct cryptd_ablkcipher *tfm); | ||
26 | |||
27 | #endif | ||