Home
last modified time | relevance | path

Searched refs:in_key (Results 1 – 6 of 6) sorted by relevance

/linux-2.4.37.9/crypto/
Dkhazad.c755 static int khazad_setkey(void *ctx_arg, const u8 *in_key, in khazad_setkey() argument
770 K2 = ((u64)in_key[ 0] << 56) ^ in khazad_setkey()
771 ((u64)in_key[ 1] << 48) ^ in khazad_setkey()
772 ((u64)in_key[ 2] << 40) ^ in khazad_setkey()
773 ((u64)in_key[ 3] << 32) ^ in khazad_setkey()
774 ((u64)in_key[ 4] << 24) ^ in khazad_setkey()
775 ((u64)in_key[ 5] << 16) ^ in khazad_setkey()
776 ((u64)in_key[ 6] << 8) ^ in khazad_setkey()
777 ((u64)in_key[ 7] ); in khazad_setkey()
778 K1 = ((u64)in_key[ 8] << 56) ^ in khazad_setkey()
[all …]
Dtea.c49 static int tea_setkey(void *ctx_arg, const u8 *in_key, in tea_setkey() argument
61 ctx->KEY[0] = u32_in (in_key); in tea_setkey()
62 ctx->KEY[1] = u32_in (in_key + 4); in tea_setkey()
63 ctx->KEY[2] = u32_in (in_key + 8); in tea_setkey()
64 ctx->KEY[3] = u32_in (in_key + 12); in tea_setkey()
127 static int xtea_setkey(void *ctx_arg, const u8 *in_key, in xtea_setkey() argument
139 ctx->KEY[0] = u32_in (in_key); in xtea_setkey()
140 ctx->KEY[1] = u32_in (in_key + 4); in xtea_setkey()
141 ctx->KEY[2] = u32_in (in_key + 8); in xtea_setkey()
142 ctx->KEY[3] = u32_in (in_key + 12); in xtea_setkey()
Daes.c273 aes_set_key(void *ctx_arg, const u8 *in_key, unsigned int key_len, u32 *flags) in aes_set_key() argument
285 E_KEY[0] = u32_in (in_key); in aes_set_key()
286 E_KEY[1] = u32_in (in_key + 4); in aes_set_key()
287 E_KEY[2] = u32_in (in_key + 8); in aes_set_key()
288 E_KEY[3] = u32_in (in_key + 12); in aes_set_key()
298 E_KEY[4] = u32_in (in_key + 16); in aes_set_key()
299 t = E_KEY[5] = u32_in (in_key + 20); in aes_set_key()
305 E_KEY[4] = u32_in (in_key + 16); in aes_set_key()
306 E_KEY[5] = u32_in (in_key + 20); in aes_set_key()
307 E_KEY[6] = u32_in (in_key + 24); in aes_set_key()
[all …]
Danubis.c461 static int anubis_setkey(void *ctx_arg, const u8 *in_key, in anubis_setkey() argument
488 (in_key[pos ] << 24) ^ in anubis_setkey()
489 (in_key[pos + 1] << 16) ^ in anubis_setkey()
490 (in_key[pos + 2] << 8) ^ in anubis_setkey()
491 (in_key[pos + 3] ); in anubis_setkey()
Darc4.c27 static int arc4_set_key(void *ctx_arg, const u8 *in_key, unsigned int key_len, u32 *flags) in arc4_set_key() argument
41 j = (j + in_key[k] + a) & 0xff; in arc4_set_key()
Dcast6.c385 cast6_setkey(void *ctx, const u8 * in_key, unsigned key_len, u32 * flags) in cast6_setkey() argument
398 memcpy (p_key, in_key, key_len); in cast6_setkey()