Lines Matching refs:in_key
71 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key,
80 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len);
83 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
97 return setkey_fallback_cip(tfm, in_key, key_len);
100 memcpy(sctx->key, in_key, key_len);
200 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
214 return setkey_fallback_skcipher(tfm, in_key, key_len);
217 memcpy(sctx->key, in_key, key_len);
296 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
310 return setkey_fallback_skcipher(tfm, in_key, key_len);
313 memcpy(sctx->key, in_key, key_len);
389 static int xts_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
396 err = xts_fallback_setkey(tfm, in_key, key_len);
416 memcpy(xts_ctx->key, in_key, key_len);
417 memcpy(xts_ctx->pcc_key, in_key + key_len, key_len);
532 static int ctr_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
546 return setkey_fallback_skcipher(tfm, in_key, key_len);
549 memcpy(sctx->key, in_key, key_len);