.. | .. |
---|
18 | 18 | #include <crypto/hash.h> |
---|
19 | 19 | #include <crypto/skcipher.h> |
---|
20 | 20 | |
---|
21 | | -struct cryptd_ablkcipher { |
---|
22 | | - struct crypto_ablkcipher base; |
---|
23 | | -}; |
---|
24 | | - |
---|
25 | | -static inline struct cryptd_ablkcipher *__cryptd_ablkcipher_cast( |
---|
26 | | - struct crypto_ablkcipher *tfm) |
---|
27 | | -{ |
---|
28 | | - return (struct cryptd_ablkcipher *)tfm; |
---|
29 | | -} |
---|
30 | | - |
---|
31 | | -/* alg_name should be algorithm to be cryptd-ed */ |
---|
32 | | -struct cryptd_ablkcipher *cryptd_alloc_ablkcipher(const char *alg_name, |
---|
33 | | - u32 type, u32 mask); |
---|
34 | | -struct crypto_blkcipher *cryptd_ablkcipher_child(struct cryptd_ablkcipher *tfm); |
---|
35 | | -bool cryptd_ablkcipher_queued(struct cryptd_ablkcipher *tfm); |
---|
36 | | -void cryptd_free_ablkcipher(struct cryptd_ablkcipher *tfm); |
---|
37 | | - |
---|
38 | 21 | struct cryptd_skcipher { |
---|
39 | 22 | struct crypto_skcipher base; |
---|
40 | 23 | }; |
---|
41 | 24 | |
---|
| 25 | +/* alg_name should be algorithm to be cryptd-ed */ |
---|
42 | 26 | struct cryptd_skcipher *cryptd_alloc_skcipher(const char *alg_name, |
---|
43 | 27 | u32 type, u32 mask); |
---|
44 | 28 | struct crypto_skcipher *cryptd_skcipher_child(struct cryptd_skcipher *tfm); |
---|