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