diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-05 19:41:22 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-05 19:41:22 -0400 |
commit | 9efe21cb82b5dbe3b0b2ae4de4eccc64ecb94e95 (patch) | |
tree | 7ff8833745d2f268f897f6fa4a27263b4a572245 /include/crypto/cryptd.h | |
parent | de18836e447c2dc30120c0919b8db8ddc0401cc4 (diff) | |
parent | 0221c81b1b8eb0cbb6b30a0ced52ead32d2b4e4c (diff) |
Merge branch 'linus' into irq/threaded
Conflicts:
include/linux/irq.h
kernel/irq/handle.c
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 | ||