/openbmc/linux/crypto/ |
H A D | aria_generic.c | 106 aria_gsrk(ctx->enc_key[rkidx], w0, w1, 19); in aria_set_encrypt_key() 108 aria_gsrk(ctx->enc_key[rkidx], w1, w2, 19); in aria_set_encrypt_key() 110 aria_gsrk(ctx->enc_key[rkidx], w2, w3, 19); in aria_set_encrypt_key() 112 aria_gsrk(ctx->enc_key[rkidx], w3, w0, 19); in aria_set_encrypt_key() 115 aria_gsrk(ctx->enc_key[rkidx], w0, w1, 31); in aria_set_encrypt_key() 117 aria_gsrk(ctx->enc_key[rkidx], w1, w2, 31); in aria_set_encrypt_key() 119 aria_gsrk(ctx->enc_key[rkidx], w2, w3, 31); in aria_set_encrypt_key() 121 aria_gsrk(ctx->enc_key[rkidx], w3, w0, 31); in aria_set_encrypt_key() 124 aria_gsrk(ctx->enc_key[rkidx], w0, w1, 67); in aria_set_encrypt_key() 126 aria_gsrk(ctx->enc_key[rkidx], w1, w2, 67); in aria_set_encrypt_key() [all …]
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_cmd.c | 586 struct mwifiex_ds_encrypt_key *enc_key, in mwifiex_set_aes_key_v2() argument 592 if (enc_key->is_igtk_key) { in mwifiex_set_aes_key_v2() 595 if (enc_key->is_rx_seq_valid) in mwifiex_set_aes_key_v2() 597 enc_key->pn, enc_key->pn_len); in mwifiex_set_aes_key_v2() 602 cpu_to_le16(enc_key->key_len); in mwifiex_set_aes_key_v2() 604 enc_key->key_material, enc_key->key_len); in mwifiex_set_aes_key_v2() 606 } else if (enc_key->is_igtk_def_key) { in mwifiex_set_aes_key_v2() 610 km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK; in mwifiex_set_aes_key_v2() 614 if (enc_key->is_rx_seq_valid) in mwifiex_set_aes_key_v2() 616 enc_key->pn, enc_key->pn_len); in mwifiex_set_aes_key_v2() [all …]
|
H A D | sta_ioctl.c | 945 void *enc_key; in mwifiex_sec_ioctl_set_wep_key() local 954 enc_key = encrypt_key; in mwifiex_sec_ioctl_set_wep_key() 956 enc_key = NULL; in mwifiex_sec_ioctl_set_wep_key() 960 HostCmd_ACT_GEN_SET, 0, enc_key, false); in mwifiex_sec_ioctl_set_wep_key()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_acl_atcam.c | 23 char enc_key[MLXSW_REG_PTCEX_FLEX_KEY_BLOCKS_LEN]; /* MSB blocks */ member 39 char *enc_key, u8 erp_id); 95 char *enc_key, u8 erp_id) in mlxsw_sp_acl_atcam_generic_lkey_id_get() argument 222 char *enc_key, u8 erp_id) in mlxsw_sp_acl_atcam_12kb_lkey_id_get() argument 231 memcpy(ht_key.enc_key, enc_key, sizeof(ht_key.enc_key)); in mlxsw_sp_acl_atcam_12kb_lkey_id_get() 232 mlxsw_afk_clear(afk, ht_key.enc_key, in mlxsw_sp_acl_atcam_12kb_lkey_id_get() 394 lkey_id = aregion->ops->lkey_id_get(aregion, aentry->ht_key.enc_key, in mlxsw_sp_acl_atcam_region_entry_insert() 403 aentry->ht_key.enc_key, erp_id, in mlxsw_sp_acl_atcam_region_entry_insert() 432 aentry->ht_key.enc_key, erp_id, in mlxsw_sp_acl_atcam_region_entry_remove() 461 aentry->ht_key.enc_key, erp_id, in mlxsw_sp_acl_atcam_region_entry_action_replace() [all …]
|
H A D | spectrum_acl_tcam.h | 170 char enc_key[MLXSW_REG_PTCEX_FLEX_KEY_BLOCKS_LEN]; /* Encoded key, minus member 246 const char *enc_key); 248 const char *enc_key);
|
H A D | spectrum_acl_erp.c | 1103 const char *enc_key) in mlxsw_sp_acl_erp_delta_value() argument 1112 tmp = (unsigned char) enc_key[__MASK_IDX(start / 8)]; in mlxsw_sp_acl_erp_delta_value() 1114 tmp |= (unsigned char) enc_key[__MASK_IDX(start / 8 + 1)] << 8; in mlxsw_sp_acl_erp_delta_value() 1121 const char *enc_key) in mlxsw_sp_acl_erp_delta_clear() argument 1132 byte = (unsigned char *) &enc_key[__MASK_IDX(start / 8)]; in mlxsw_sp_acl_erp_delta_clear() 1135 byte = (unsigned char *) &enc_key[__MASK_IDX(start / 8 + 1)]; in mlxsw_sp_acl_erp_delta_clear()
|
/openbmc/linux/drivers/crypto/vmx/ |
H A D | aes_ctr.c | 20 struct aes_key enc_key; member 59 ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key); in p8_aes_ctr_setkey() 81 aes_p8_encrypt(ctrblk, keystream, &ctx->enc_key); in p8_aes_ctr_final() 114 &ctx->enc_key, walk.iv); in p8_aes_ctr_crypt()
|
H A D | aes.c | 24 struct aes_key enc_key; member 70 ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key); in p8_aes_setkey() 91 aes_p8_encrypt(src, dst, &ctx->enc_key); in p8_aes_encrypt()
|
H A D | aes_cbc.c | 20 struct aes_key enc_key; member 60 ret = aes_p8_set_encrypt_key(key, keylen * 8, &ctx->enc_key); in p8_aes_cbc_setkey() 96 enc ? &ctx->enc_key : &ctx->dec_key, in p8_aes_cbc_crypt()
|
H A D | aes_xts.c | 21 struct aes_key enc_key; member 67 ret |= aes_p8_set_encrypt_key(key, (keylen/2) * 8, &ctx->enc_key); in p8_aes_xts_setkey() 121 &ctx->enc_key, NULL, tweak); in p8_aes_xts_crypt()
|
/openbmc/linux/arch/powerpc/crypto/ |
H A D | aes-gcm-p10-glue.c | 62 struct aes_key enc_key; member 195 ret = aes_p10_set_encrypt_key(key, keylen * 8, &ctx->enc_key); in p10_aes_gcm_setkey() 245 gcmp10_init(gctx, iv, (unsigned char *) &ctx->enc_key, hash, assoc, assoclen); in p10_aes_gcm_crypt() 267 &ctx->enc_key, gctx->iv, hash->Htable); in p10_aes_gcm_crypt() 272 &ctx->enc_key, gctx->iv, hash->Htable); in p10_aes_gcm_crypt()
|
/openbmc/linux/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 126 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 128 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 244 memcpy(ctx->enc_key, key1, keylen / 2); in cvm_xts_setkey() 245 memcpy(ctx->enc_key + KEY2_OFFSET, key2, keylen / 2); in cvm_xts_setkey() 295 memcpy(ctx->enc_key, key, keylen); in cvm_setkey()
|
H A D | cptvf_algs.h | 100 u8 enc_key[MAX_KEY_SIZE]; member
|
/openbmc/linux/drivers/crypto/qce/ |
H A D | cipher.h | 15 u8 enc_key[QCE_MAX_KEY_SIZE]; member
|
H A D | aead.h | 16 u8 enc_key[QCE_MAX_KEY_SIZE]; member
|
H A D | skcipher.c | 197 memcpy(ctx->enc_key, key, keylen); in qce_skcipher_setkey() 222 memcpy(ctx->enc_key, key, keylen); in qce_des_setkey() 252 memcpy(ctx->enc_key, key, keylen); in qce_des3_setkey()
|
H A D | common.c | 336 qce_cpu_to_be32p_array(enckey, ctx->enc_key, keylen); in qce_setup_regs_skcipher() 351 qce_xtskey(qce, ctx->enc_key, ctx->enc_keylen, in qce_setup_regs_skcipher() 445 enckey_words = qce_be32_to_cpu_array(enckey, ctx->enc_key, enc_keylen); in qce_setup_regs_aead()
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptvf_algs.h | 121 u8 enc_key[OTX2_CPT_MAX_KEY_SIZE]; member
|
H A D | otx2_cptvf_algs.c | 263 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 265 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 421 memcpy(ctx->enc_key, key1, keylen / 2); in otx2_cpt_skcipher_xts_setkey() 422 memcpy(ctx->enc_key + KEY2_OFFSET, key2, keylen / 2); in otx2_cpt_skcipher_xts_setkey() 452 memcpy(ctx->enc_key, key, keylen); in cpt_des_setkey() 483 memcpy(ctx->enc_key, key, keylen); in cpt_aes_setkey()
|
/openbmc/linux/fs/ecryptfs/ |
H A D | keystore.c | 408 memcpy(key_rec->enc_key, &data[i], key_rec->enc_key_size); in parse_tag_67_packet() 2040 memcpy(key_rec->enc_key, in write_tag_1_packet() 2059 ecryptfs_dump_hex(key_rec->enc_key, key_rec->enc_key_size); in write_tag_1_packet() 2091 memcpy(&dest[(*packet_size)], key_rec->enc_key, in write_tag_1_packet() 2237 memcpy(key_rec->enc_key, in write_tag_3_packet() 2270 rc = virt_to_scatterlist(key_rec->enc_key, key_rec->enc_key_size, in write_tag_3_packet() 2320 ecryptfs_dump_hex(key_rec->enc_key, in write_tag_3_packet() 2372 memcpy(&dest[(*packet_size)], key_rec->enc_key, in write_tag_3_packet()
|
/openbmc/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptvf_algs.h | 131 u8 enc_key[OTX_CPT_MAX_KEY_SIZE]; member
|
H A D | otx_cptvf_algs.c | 278 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 280 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 406 memcpy(ctx->enc_key, key1, keylen / 2); in otx_cpt_skcipher_xts_setkey() 407 memcpy(ctx->enc_key + KEY2_OFFSET, key2, keylen / 2); in otx_cpt_skcipher_xts_setkey() 434 memcpy(ctx->enc_key, key, keylen); in cpt_des_setkey() 460 memcpy(ctx->enc_key, key, keylen); in cpt_aes_setkey()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | asm-offsets.c | 125 OFFSET(ARIA_CTX_enc_key, aria_ctx, enc_key); in common()
|
/openbmc/linux/include/crypto/ |
H A D | aria.h | 35 u32 enc_key[ARIA_MAX_RD_KEYS][ARIA_RD_KEY_WORDS]; member
|
/openbmc/linux/arch/x86/crypto/ |
H A D | aria_aesni_avx_glue.c | 69 return ecb_do_encrypt(req, ctx->enc_key[0]); in aria_avx_ecb_encrypt()
|