Home
last modified time | relevance | path

Searched refs:key_length (Results 1 – 25 of 49) sorted by relevance

12

/linux-6.12.1/arch/arm/crypto/
Daes-cipher-glue.c20 int rounds = 6 + ctx->key_length / 4; in aes_arm_encrypt()
28 int rounds = 6 + ctx->key_length / 4; in aes_arm_decrypt()
/linux-6.12.1/arch/arm64/crypto/
Daes-cipher-glue.c18 int rounds = 6 + ctx->key_length / 4; in aes_arm64_encrypt()
26 int rounds = 6 + ctx->key_length / 4; in aes_arm64_decrypt()
Daes-glue.c183 int err, rounds = 6 + ctx->key_length / 4; in ecb_encrypt()
203 int err, rounds = 6 + ctx->key_length / 4; in ecb_decrypt()
224 int err = 0, rounds = 6 + ctx->key_length / 4; in cbc_encrypt_walk()
253 int err = 0, rounds = 6 + ctx->key_length / 4; in cbc_decrypt_walk()
281 int err, rounds = 6 + ctx->key_length / 4; in cts_cbc_encrypt()
338 int err, rounds = 6 + ctx->key_length / 4; in cts_cbc_decrypt()
411 int err, rounds = 6 + ctx->key1.key_length / 4; in essiv_cbc_encrypt()
433 int err, rounds = 6 + ctx->key1.key_length / 4; in essiv_cbc_decrypt()
455 int err, rounds = 6 + ctx->key_length / 4; in xctr_encrypt()
501 int err, rounds = 6 + ctx->key_length / 4; in ctr_encrypt()
[all …]
Daes-ce-glue.c43 return 6 + ctx->key_length / 4; in num_rounds()
93 ctx->key_length = key_len; in ce_aes_expandkey()
/linux-6.12.1/drivers/s390/crypto/
Dzcrypt_msgtype6.h130 short int key_length; in rng_type6cprb_msgx() member
157 msg->key_length = 0x02; in rng_type6cprb_msgx()
/linux-6.12.1/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c98 pwep->key_length = wep_key_len; in wpa_set_encryption()
113 memcpy(pwep->key_material, param->u.crypt.key, pwep->key_length); in wpa_set_encryption()
127 memcpy(&psecuritypriv->dot11DefKey[wep_key_idx].skey[0], pwep->key_material, pwep->key_length); in wpa_set_encryption()
128 psecuritypriv->dot11DefKeylen[wep_key_idx] = pwep->key_length; in wpa_set_encryption()
578 pwep->key_length = wep_key_len; in rtw_set_encryption()
584 memcpy(pwep->key_material, param->u.crypt.key, pwep->key_length); in rtw_set_encryption()
592 if (pwep->key_length == 13) { in rtw_set_encryption()
599 memcpy(&psecuritypriv->dot11DefKey[wep_key_idx].skey[0], pwep->key_material, pwep->key_length); in rtw_set_encryption()
601 psecuritypriv->dot11DefKeylen[wep_key_idx] = pwep->key_length; in rtw_set_encryption()
603 rtw_ap_set_wep_key(padapter, pwep->key_material, pwep->key_length, wep_key_idx, 1); in rtw_set_encryption()
[all …]
/linux-6.12.1/arch/x86/crypto/
Dcamellia-x86_64-asm_64.S35 #define key_length CAMELLIA_TABLE_BYTE_LEN macro
202 cmpb $16, key_length(CTX);
233 cmpl $16, key_length(CTX);
437 cmpb $16, key_length(CTX);
469 cmpl $16, key_length(CTX);
Dcamellia.h19 u32 key_length; member
Daesni-intel_glue.c388 if (ctx->key_length == AES_KEYSIZE_128) in aesni_ctr_enc_avx_tfm()
390 else if (ctx->key_length == AES_KEYSIZE_192) in aesni_ctr_enc_avx_tfm()
434 if (ctx->key_length == AES_KEYSIZE_128) in aesni_xctr_enc_avx_tfm()
437 else if (ctx->key_length == AES_KEYSIZE_192) in aesni_xctr_enc_avx_tfm()
1205 BUILD_BUG_ON(offsetof(struct aes_gcm_key_aesni, base.aes_key.key_length) != 480); in gcm_setkey()
1210 BUILD_BUG_ON(offsetof(struct aes_gcm_key_avx10, base.aes_key.key_length) != 480); in gcm_setkey()
/linux-6.12.1/lib/crypto/
Daes.c196 ctx->key_length = key_len; in aes_expandkey()
261 int rounds = 6 + ctx->key_length / 4; in aes_encrypt()
312 int rounds = 6 + ctx->key_length / 4; in aes_decrypt()
/linux-6.12.1/drivers/staging/rtl8723bs/core/
Drtw_ioctl_set.c437 switch (wep->key_length) { in rtw_set_802_11_add_wep()
449 memcpy(&(psecuritypriv->dot11DefKey[keyid].skey[0]), &(wep->key_material), wep->key_length); in rtw_set_802_11_add_wep()
451 psecuritypriv->dot11DefKeylen[keyid] = wep->key_length; in rtw_set_802_11_add_wep()
/linux-6.12.1/drivers/crypto/marvell/cesa/
Dcipher.c274 remaining = (ctx->aes.key_length - 16) / 4; in mv_cesa_aes_setkey()
275 offset = ctx->aes.key_length + 24 - remaining; in mv_cesa_aes_setkey()
711 for (i = 0; i < ctx->aes.key_length / sizeof(u32); i++) in mv_cesa_aes_op()
714 if (ctx->aes.key_length == 24) in mv_cesa_aes_op()
716 else if (ctx->aes.key_length == 32) in mv_cesa_aes_op()
/linux-6.12.1/include/crypto/
Daes.h28 u32 key_length; member
/linux-6.12.1/crypto/
Daes_generic.c1181 const int key_len = ctx->key_length; in crypto_aes_encrypt()
1250 const int key_len = ctx->key_length; in crypto_aes_decrypt()
Dcamellia_generic.c955 int key_length; member
969 cctx->key_length = key_len; in camellia_set_key()
998 if (cctx->key_length == 16) in camellia_encrypt()
1024 if (cctx->key_length == 16) in camellia_decrypt()
/linux-6.12.1/drivers/crypto/axis/
Dartpec6_crypto.c327 size_t key_length; member
1200 ctx->key_length); in artpec6_crypto_ctr_crypt()
1256 ctx->key_length = len; in artpec6_crypto_aead_set_key()
1616 ctx->key_length = keylen; in artpec6_crypto_cipher_set_key()
1642 ctx->key_length = keylen; in artpec6_crypto_xts_set_key()
1696 ctx->key_length, true, false); in artpec6_crypto_prepare_crypto()
1703 cipher_klen = ctx->key_length/2; in artpec6_crypto_prepare_crypto()
1705 cipher_klen = ctx->key_length; in artpec6_crypto_prepare_crypto()
1720 MODULE_NAME, ctx->key_length); in artpec6_crypto_prepare_crypto()
1860 ctx->key_length, true, false); in artpec6_crypto_prepare_aead()
[all …]
/linux-6.12.1/drivers/net/wireless/silabs/wfx/
Dkey.c37 msg->key_length = key->keylen; in fill_wep_pair()
48 msg->key_length = key->keylen; in fill_wep_group()
Dhif_api_cmd.h434 u8 key_length; member
440 u8 key_length; member
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Dwlan_bssdef.h115 u32 key_length; /* length of key in bytes */ member
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/
Dsta_ioctl.c918 if (!wep_key->key_length) { in mwifiex_sec_ioctl_set_wep_key()
926 wep_key->key_material, wep_key->key_length); in mwifiex_sec_ioctl_set_wep_key()
927 encrypt_key->key_len = wep_key->key_length; in mwifiex_sec_ioctl_set_wep_key()
940 wep_key->key_length = encrypt_key->key_len; in mwifiex_sec_ioctl_set_wep_key()
943 if (wep_key->key_length) { in mwifiex_sec_ioctl_set_wep_key()
Dsta_cmd.c530 if ((priv->wep_key[i].key_length == WLAN_KEY_LEN_WEP40) || in mwifiex_set_keyparamset_wep()
531 (priv->wep_key[i].key_length == WLAN_KEY_LEN_WEP104)) { in mwifiex_set_keyparamset_wep()
538 key_length + in mwifiex_set_keyparamset_wep()
546 cpu_to_le16(priv->wep_key[i].key_length); in mwifiex_set_keyparamset_wep()
558 priv->wep_key[i].key_length); in mwifiex_set_keyparamset_wep()
560 cur_key_param_len = priv->wep_key[i].key_length + in mwifiex_set_keyparamset_wep()
568 } else if (!priv->wep_key[i].key_length) { in mwifiex_set_keyparamset_wep()
573 (i + 1), priv->wep_key[i].key_length); in mwifiex_set_keyparamset_wep()
/linux-6.12.1/drivers/net/ethernet/mscc/
Docelot_flower.c526 int key_length = vcap->keys[VCAP_ES0_IGR_PORT].length; in ocelot_flower_parse_indev() local
566 filter->ingress_port.mask = GENMASK(key_length - 1, 0); in ocelot_flower_parse_indev()
814 int key_length = vcap->keys[VCAP_ES0_EGR_PORT].length; in ocelot_vcap_filter_create() local
817 filter->egress_port.mask = GENMASK(key_length - 1, 0); in ocelot_vcap_filter_create()
/linux-6.12.1/arch/s390/include/uapi/asm/
Ddasd.h228 unsigned int key_length; /* Key length of first record in error */ member
/linux-6.12.1/fs/reiserfs/
Dstree.c83 if (cpu_key->key_length == 3) in comp_keys()
102 int key_length = REISERFS_SHORT_KEY_LEN; in comp_short_le_keys() local
106 for (; key_length--; ++k1_u32, ++k2_u32) { in comp_short_le_keys()
1604 tail_key.key_length = 4; in indirect_to_direct_roll_back()
1716 item_key->key_length = 4; in reiserfs_cut_from_item()
/linux-6.12.1/arch/sparc/crypto/
Daes_glue.c55 u32 key_length; member
194 ctx->key_length = key_len; in aes_set_key()

12