Home
last modified time | relevance | path

Searched refs:in_key (Results 1 – 10 of 10) sorted by relevance

/linux/lib/crypto/powerpc/
H A Daes.h47 const u8 *in_key, int key_len, int nrounds) in aes_preparekey_arch() argument
50 ppc_expand_key_128(k->spe_enc_key, in_key); in aes_preparekey_arch()
52 ppc_expand_key_192(k->spe_enc_key, in_key); in aes_preparekey_arch()
54 ppc_expand_key_256(k->spe_enc_key, in_key); in aes_preparekey_arch()
131 const u8 *in_key, int key_len, int nrounds) in aes_preparekey_arch() argument
140 ret = aes_p8_set_encrypt_key(in_key, keybits, &k->p8); in aes_preparekey_arch()
147 ret = aes_p8_set_decrypt_key(in_key, keybits, in aes_preparekey_arch()
158 in_key, key_len); in aes_preparekey_arch()
/linux/arch/arm64/crypto/
H A Daes-neonbs-glue.c62 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument
73 err = aes_expandkey(rk, in_key, key_len); in aesbs_setkey()
124 static int aesbs_cbc_ctr_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_ctr_setkey() argument
135 err = aes_expandkey(rk, in_key, key_len); in aesbs_cbc_ctr_setkey()
246 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument
253 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
258 err = aes_expandkey(&ctx->cts, in_key, key_len); in aesbs_xts_setkey()
262 err = aes_expandkey(&rk, in_key + key_len, key_len); in aesbs_xts_setkey()
268 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()
/linux/lib/crypto/
H A Darc4.c14 int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) in arc4_setkey() argument
27 j = (j + in_key[k] + a) & 0xff; in arc4_setkey()
/linux/drivers/crypto/
H A Dpadlock-aes.c107 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
111 const __le32 *key = (const __le32 *)in_key; in aes_set_key()
147 if (aes_expandkey(&gen_aes, in_key, key_len)) in aes_set_key()
162 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, in aes_set_key_skcipher() argument
165 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); in aes_set_key_skcipher()
/linux/crypto/
H A Dsm4.c119 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, in sm4_expandkey() argument
123 const u32 *key = (u32 *)in_key; in sm4_expandkey()
/linux/include/crypto/
H A Darc4.h20 int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len);
H A Dsm4.h37 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key,
H A Daria.h455 int aria_set_key(struct crypto_tfm *tfm, const u8 *in_key,
/linux/net/mac802154/
H A Dllsec.c919 const struct ieee802154_llsec_key_id *in_key) in llsec_update_devkey_record() argument
923 devkey = llsec_devkey_find(dev, in_key); in llsec_update_devkey_record()
932 next->devkey.key_id = *in_key; in llsec_update_devkey_record()
936 devkey = llsec_devkey_find(dev, in_key); in llsec_update_devkey_record()
950 const struct ieee802154_llsec_key_id *in_key, in llsec_update_devkey_info() argument
956 devkey = llsec_devkey_find(dev, in_key); in llsec_update_devkey_info()
962 int rc = llsec_update_devkey_record(dev, in_key); in llsec_update_devkey_info()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c140 u8 in_key = *key, in_key_inv = *key_inv; in ice_gen_key_word() local
156 *key |= (in_key & 0x1) << 7; in ice_gen_key_word()
176 in_key >>= 1; in ice_gen_key_word()