Lines Matching refs:in_key
92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key,
100 ppc_expand_key_128(ctx->key_enc, in_key);
104 ppc_expand_key_192(ctx->key_enc, in_key);
108 ppc_expand_key_256(ctx->key_enc, in_key);
120 const u8 *in_key, unsigned int key_len)
122 return ppc_aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len);
125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key,
131 err = xts_verify_key(tfm, in_key, key_len);
140 ppc_expand_key_128(ctx->key_enc, in_key);
141 ppc_expand_key_128(ctx->key_twk, in_key + AES_KEYSIZE_128);
145 ppc_expand_key_192(ctx->key_enc, in_key);
146 ppc_expand_key_192(ctx->key_twk, in_key + AES_KEYSIZE_192);
150 ppc_expand_key_256(ctx->key_enc, in_key);
151 ppc_expand_key_256(ctx->key_twk, in_key + AES_KEYSIZE_256);