/drivers/net/wireless/marvell/mwifiex/ |
D | sta_cmd.c | 594 struct mwifiex_ds_encrypt_key *enc_key, in mwifiex_set_aes_key_v2() argument 600 if (enc_key->is_igtk_key) { in mwifiex_set_aes_key_v2() 603 if (enc_key->is_rx_seq_valid) in mwifiex_set_aes_key_v2() 605 enc_key->pn, enc_key->pn_len); in mwifiex_set_aes_key_v2() 610 cpu_to_le16(enc_key->key_len); in mwifiex_set_aes_key_v2() 612 enc_key->key_material, enc_key->key_len); in mwifiex_set_aes_key_v2() 614 } else if (enc_key->is_igtk_def_key) { in mwifiex_set_aes_key_v2() 618 km->key_param_set.key_idx = enc_key->key_index & KEY_INDEX_MASK; in mwifiex_set_aes_key_v2() 622 if (enc_key->is_rx_seq_valid) in mwifiex_set_aes_key_v2() 624 enc_key->pn, enc_key->pn_len); in mwifiex_set_aes_key_v2() [all …]
|
D | sta_ioctl.c | 957 void *enc_key; in mwifiex_sec_ioctl_set_wep_key() local 966 enc_key = encrypt_key; in mwifiex_sec_ioctl_set_wep_key() 968 enc_key = NULL; in mwifiex_sec_ioctl_set_wep_key() 972 HostCmd_ACT_GEN_SET, 0, enc_key, false); in mwifiex_sec_ioctl_set_wep_key()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
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->enc_key, erp_id); in mlxsw_sp_acl_atcam_region_entry_insert() 402 aentry->enc_key, erp_id, in mlxsw_sp_acl_atcam_region_entry_insert() 431 aentry->enc_key, erp_id, in mlxsw_sp_acl_atcam_region_entry_remove() 460 aentry->enc_key, erp_id, in mlxsw_sp_acl_atcam_region_entry_action_replace() [all …]
|
D | spectrum_acl_tcam.h | 188 char enc_key[MLXSW_REG_PTCEX_FLEX_KEY_BLOCKS_LEN]; /* Encoded key, member 253 const char *enc_key); 255 const char *enc_key);
|
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()
|
D | spectrum_acl_bloom_filter.c | 138 &aentry->enc_key[chunk_key_offsets[chunk_index]], in mlxsw_sp_acl_bf_key_encode()
|
/drivers/crypto/vmx/ |
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()
|
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()
|
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()
|
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()
|
/drivers/crypto/cavium/cpt/ |
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() 245 memcpy(ctx->enc_key, key1, keylen / 2); in cvm_xts_setkey() 246 memcpy(ctx->enc_key + KEY2_OFFSET, key2, keylen / 2); in cvm_xts_setkey() 297 memcpy(ctx->enc_key, key, keylen); in cvm_setkey()
|
D | cptvf_algs.h | 100 u8 enc_key[MAX_KEY_SIZE]; member
|
/drivers/crypto/qce/ |
D | cipher.h | 15 u8 enc_key[QCE_MAX_KEY_SIZE]; member
|
D | skcipher.c | 183 memcpy(ctx->enc_key, key, keylen); in qce_skcipher_setkey() 204 memcpy(ctx->enc_key, key, keylen); in qce_des_setkey() 219 memcpy(ctx->enc_key, key, keylen); in qce_des3_setkey()
|
D | common.c | 331 qce_cpu_to_be32p_array(enckey, ctx->enc_key, keylen); in qce_setup_regs_skcipher() 346 qce_xtskey(qce, ctx->enc_key, ctx->enc_keylen, in qce_setup_regs_skcipher()
|
/drivers/crypto/marvell/octeontx/ |
D | otx_cptvf_algs.h | 131 u8 enc_key[OTX_CPT_MAX_KEY_SIZE]; member
|
D | otx_cptvf_algs.c | 276 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len * 2); in create_ctx_hdr() 278 memcpy(fctx->enc.encr_key, ctx->enc_key, ctx->key_len); in create_ctx_hdr() 404 memcpy(ctx->enc_key, key1, keylen / 2); in otx_cpt_skcipher_xts_setkey() 405 memcpy(ctx->enc_key + KEY2_OFFSET, key2, keylen / 2); in otx_cpt_skcipher_xts_setkey() 432 memcpy(ctx->enc_key, key, keylen); in cpt_des_setkey() 458 memcpy(ctx->enc_key, key, keylen); in cpt_aes_setkey()
|
/drivers/net/wireless/marvell/libertas/ |
D | host.h | 373 struct enc_key { struct
|
/drivers/crypto/ |
D | sa2ul.c | 694 int sa_init_sc(struct sa_ctx_info *ctx, const u8 *enc_key, in sa_init_sc() argument 736 if (sa_set_sc_enc(ad, enc_key, enc_key_sz, enc, in sa_init_sc()
|