Lines Matching refs:key

979 static void camellia_setup128(const unsigned char *key, u64 *subkey)  in camellia_setup128()  argument
987 kl = get_unaligned_be64(key); in camellia_setup128()
988 kr = get_unaligned_be64(key + 8); in camellia_setup128()
1085 static void camellia_setup256(const unsigned char *key, u64 *subkey) in camellia_setup256() argument
1095 kl = get_unaligned_be64(key); in camellia_setup256()
1096 kr = get_unaligned_be64(key + 8); in camellia_setup256()
1097 krl = get_unaligned_be64(key + 16); in camellia_setup256()
1098 krr = get_unaligned_be64(key + 24); in camellia_setup256()
1218 static void camellia_setup192(const unsigned char *key, u64 *subkey) in camellia_setup192() argument
1223 memcpy(kk, key, 24); in camellia_setup192()
1224 memcpy((unsigned char *)&krl, key+16, 8); in camellia_setup192()
1230 int __camellia_setkey(struct camellia_ctx *cctx, const unsigned char *key, in __camellia_setkey() argument
1240 camellia_setup128(key, cctx->key_table); in __camellia_setkey()
1243 camellia_setup192(key, cctx->key_table); in __camellia_setkey()
1246 camellia_setup256(key, cctx->key_table); in __camellia_setkey()
1254 static int camellia_setkey(struct crypto_tfm *tfm, const u8 *key, in camellia_setkey() argument
1257 return __camellia_setkey(crypto_tfm_ctx(tfm), key, key_len); in camellia_setkey()
1260 static int camellia_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in camellia_setkey_skcipher() argument
1263 return camellia_setkey(&tfm->base, key, key_len); in camellia_setkey_skcipher()