Forum Settings
« Previous 0 Next »
Reply To Thread

Structs and Kernels can go diaf.

#1 Dec 09 2012 at 6:14 PM Rating: Decent
It's Just a Flesh Wound
22,699 posts
I nearly finished writing out how I can do my entire encryption/decryption process. I go to figure out what the last unknown variables are, and I find more kernel fun.

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 
 44 #define CRYPTO_ALG_TYPE_HASH_MASK       0x0000000e 
 45 #define CRYPTO_ALG_TYPE_AHASH_MASK      0x0000000c 
 46 #define CRYPTO_ALG_TYPE_BLKCIPHER_MASK  0x0000000c 
 48 #define CRYPTO_ALG_LARVAL               0x00000010 
 49 #define CRYPTO_ALG_DEAD                 0x00000020 
 50 #define CRYPTO_ALG_DYING                0x00000040 
 51 #define CRYPTO_ALG_ASYNC                0x00000080

Smiley: motzSmiley: madSmiley: motz

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
Dear people I don't like: 凸(●´―`●)凸
« Previous 0 Next »
Reply To Thread

Colors Smileys Quote OriginalQuote Checked Help


Recent Visitors: 0 All times are in CDT