Lines Matching refs:in_key
72 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key,
81 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len);
84 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
98 return setkey_fallback_cip(tfm, in_key, key_len);
101 memcpy(sctx->key, in_key, key_len);
201 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
215 return setkey_fallback_skcipher(tfm, in_key, key_len);
218 memcpy(sctx->key, in_key, key_len);
297 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
311 return setkey_fallback_skcipher(tfm, in_key, key_len);
314 memcpy(sctx->key, in_key, key_len);
390 static int xts_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
397 err = xts_fallback_setkey(tfm, in_key, key_len);
413 memcpy(xts_ctx->key, in_key, key_len);
414 memcpy(xts_ctx->pcc_key, in_key + key_len, key_len);
529 static int ctr_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
543 return setkey_fallback_skcipher(tfm, in_key, key_len);
546 memcpy(sctx->key, in_key, key_len);