static inline struct crypto_blkcipher *crypto_alloc_blkcipher(const char *alg_name, u32 type, u32 mask)
Alright, type and mask are probably flags defined somewhere, let's check the top of the header file.
27 /* 28 * Algorithm masks and types. 29 */ 30 #define CRYPTO_ALG_TYPE_MASK 0x0000000f 31 #define CRYPTO_ALG_TYPE_CIPHER 0x00000001 32 #define CRYPTO_ALG_TYPE_COMPRESS 0x00000002 33 #define CRYPTO_ALG_TYPE_AEAD 0x00000003 34 #define CRYPTO_ALG_TYPE_BLKCIPHER 0x00000004 35 #define CRYPTO_ALG_TYPE_ABLKCIPHER 0x00000005 36 #define CRYPTO_ALG_TYPE_GIVCIPHER 0x00000006 37 #define CRYPTO_ALG_TYPE_DIGEST 0x00000008 38 #define CRYPTO_ALG_TYPE_HASH 0x00000008 39 #define CRYPTO_ALG_TYPE_SHASH 0x00000009 40 #define CRYPTO_ALG_TYPE_AHASH 0x0000000a 41 #define CRYPTO_ALG_TYPE_RNG 0x0000000c 42 #define CRYPTO_ALG_TYPE_PCOMPRESS 0x0000000f 43 44 #define CRYPTO_ALG_TYPE_HASH_MASK 0x0000000e 45 #define CRYPTO_ALG_TYPE_AHASH_MASK 0x0000000c 46 #define CRYPTO_ALG_TYPE_BLKCIPHER_MASK 0x0000000c 47 48 #define CRYPTO_ALG_LARVAL 0x00000010 49 #define CRYPTO_ALG_DEAD 0x00000020 50 #define CRYPTO_ALG_DYING 0x00000040 51 #define CRYPTO_ALG_ASYNC 0x00000080
In case you haven't it figured it out yet, this thread is my outlet so I don't punch my monitors.
Edited, Dec 9th 2012 7:15pm by Deadgye