Lines Matching refs:key
108 const __le32 *key = (const __le32 *)in_key; in aes_set_key() local
125 ctx->E[0] = le32_to_cpu(key[0]); in aes_set_key()
126 ctx->E[1] = le32_to_cpu(key[1]); in aes_set_key()
127 ctx->E[2] = le32_to_cpu(key[2]); in aes_set_key()
128 ctx->E[3] = le32_to_cpu(key[3]); in aes_set_key()
190 static inline void rep_xcrypt_ecb(const u8 *input, u8 *output, void *key, in rep_xcrypt_ecb() argument
195 : "d"(control_word), "b"(key), "c"(count)); in rep_xcrypt_ecb()
198 static inline u8 *rep_xcrypt_cbc(const u8 *input, u8 *output, void *key, in rep_xcrypt_cbc() argument
203 : "d" (control_word), "b" (key), "c" (count)); in rep_xcrypt_cbc()
207 static void ecb_crypt_copy(const u8 *in, u8 *out, u32 *key, in ecb_crypt_copy() argument
218 rep_xcrypt_ecb(tmp, out, key, cword, count); in ecb_crypt_copy()
221 static u8 *cbc_crypt_copy(const u8 *in, u8 *out, u32 *key, in cbc_crypt_copy() argument
232 return rep_xcrypt_cbc(tmp, out, key, iv, cword, count); in cbc_crypt_copy()
235 static inline void ecb_crypt(const u8 *in, u8 *out, u32 *key, in ecb_crypt() argument
242 ecb_crypt_copy(in, out, key, cword, count); in ecb_crypt()
246 rep_xcrypt_ecb(in, out, key, cword, count); in ecb_crypt()
249 static inline u8 *cbc_crypt(const u8 *in, u8 *out, u32 *key, in cbc_crypt() argument
254 return cbc_crypt_copy(in, out, key, iv, cword, count); in cbc_crypt()
256 return rep_xcrypt_cbc(in, out, key, iv, cword, count); in cbc_crypt()
259 static inline void padlock_xcrypt_ecb(const u8 *input, u8 *output, void *key, in padlock_xcrypt_ecb() argument
265 ecb_crypt(input, output, key, control_word, count); in padlock_xcrypt_ecb()
272 : "d"(control_word), "b"(key), "c"(initial)); in padlock_xcrypt_ecb()
276 : "d"(control_word), "b"(key), "c"(count - initial)); in padlock_xcrypt_ecb()
279 static inline u8 *padlock_xcrypt_cbc(const u8 *input, u8 *output, void *key, in padlock_xcrypt_cbc() argument
285 return cbc_crypt(input, output, key, iv, control_word, count); in padlock_xcrypt_cbc()
290 : "d" (control_word), "b" (key), "c" (initial)); in padlock_xcrypt_cbc()
294 : "d" (control_word), "b" (key), "c" (count-initial)); in padlock_xcrypt_cbc()