Lines Matching defs:key
43 extern void des_sparc64_key_expand(const u32 *input_key, u64 *key);
45 static int des_set_key(struct crypto_tfm *tfm, const u8 *key,
51 /* Even though we have special instructions for key expansion,
53 * weak key detection code.
55 err = crypto_des_verify_key(tfm, key);
59 des_sparc64_key_expand((const u32 *) key, &dctx->encrypt_expkey[0]);
65 static int des_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *key,
68 return des_set_key(crypto_skcipher_tfm(tfm), key, keylen);
71 extern void des_sparc64_crypt(const u64 *key, const u64 *input,
90 extern void des_sparc64_load_keys(const u64 *key);
181 static int des3_ede_set_key(struct crypto_tfm *tfm, const u8 *key,
190 err = crypto_des3_ede_verify_key(tfm, key);
194 des_sparc64_key_expand((const u32 *)key, k1);
195 key += DES_KEY_SIZE;
196 des_sparc64_key_expand((const u32 *)key, k2);
197 key += DES_KEY_SIZE;
198 des_sparc64_key_expand((const u32 *)key, k3);
214 static int des3_ede_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *key,
217 return des3_ede_set_key(crypto_skcipher_tfm(tfm), key, keylen);
220 extern void des3_ede_sparc64_crypt(const u64 *key, const u64 *input,
239 extern void des3_ede_sparc64_load_keys(const u64 *key);