Huang Ying | 1cac2cb | 2009-01-18 16:19:46 +1100 | [diff] [blame] | 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 |