/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/src/ |
D | ctr_mode.c | 41 uint8_t nonce[TC_AES_BLOCK_SIZE]; in tc_ctr_mode() local 57 (void)_copy(nonce, sizeof(nonce), ctr, sizeof(nonce)); in tc_ctr_mode() 60 block_num = (nonce[12] << 24) | (nonce[13] << 16) | in tc_ctr_mode() 61 … (nonce[14] << 8) | (nonce[15]); // 14:array element, 8:byte alignment, 15:array element in tc_ctr_mode() 66 if (tc_aes_encrypt(buffer, nonce, sched)) { in tc_ctr_mode() 68 nonce[12] = (uint8_t)(block_num >> 24); // 24:byte alignment, 12:array element in tc_ctr_mode() 69 nonce[13] = (uint8_t)(block_num >> 16); // 16:byte alignment, 13:array element in tc_ctr_mode() 70 nonce[14] = (uint8_t)(block_num >> 8); // 8:byte alignment, 14:array element in tc_ctr_mode() 71 nonce[15] = (uint8_t)(block_num); // 15:array element in tc_ctr_mode() 82 ctr[12] = nonce[12]; // 12:array element in tc_ctr_mode() [all …]
|
D | ccm_mode.c | 39 int tc_ccm_config(TCCcmMode_t c, TCAesKeySched_t sched, uint8_t *nonce, in tc_ccm_config() argument 45 nonce == (uint8_t *) 0) { in tc_ccm_config() 55 c->nonce = nonce; in tc_ccm_config() 97 uint8_t nonce[TC_AES_BLOCK_SIZE]; in ccm_ctr_mode() local 113 (void) _copy(nonce, sizeof(nonce), ctr, sizeof(nonce)); in ccm_ctr_mode() 115 …block_num = (uint16_t)((nonce[14] << 8) | (nonce[15])); // 14:array element, 8:byte alignment, 15:… in ccm_ctr_mode() 120 nonce[14] = (uint8_t)(block_num >> 8); // 14:array element in ccm_ctr_mode() 121 nonce[15] = (uint8_t)(block_num); // 15:array element in ccm_ctr_mode() 123 if (!tc_aes_encrypt(buffer, nonce, sched)) { in ccm_ctr_mode() 133 ctr[14] = nonce[14]; // 14:array element in ccm_ctr_mode() [all …]
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/crypto/ |
D | ccmp.c | 18 u8 *aad, size_t *aad_len, u8 *nonce) in ccmp_aad_nonce() argument 24 nonce[0] = 0; in ccmp_aad_nonce() 41 nonce[0] = qc[0] & 0x0f; in ccmp_aad_nonce() 44 nonce[0] |= 0x10; /* Management */ in ccmp_aad_nonce() 70 os_memcpy(nonce + 1, hdr->addr2, ETH_ALEN); in ccmp_aad_nonce() 71 nonce[7] = data[7]; /* PN5 */ in ccmp_aad_nonce() 72 nonce[8] = data[6]; /* PN4 */ in ccmp_aad_nonce() 73 nonce[9] = data[5]; /* PN3 */ in ccmp_aad_nonce() 74 nonce[10] = data[4]; /* PN2 */ in ccmp_aad_nonce() 75 nonce[11] = data[1]; /* PN1 */ in ccmp_aad_nonce() [all …]
|
D | gcmp.c | 17 u8 *aad, size_t *aad_len, u8 *nonce) in gcmp_aad_nonce() argument 67 os_memcpy(nonce, hdr->addr2, ETH_ALEN); in gcmp_aad_nonce() 68 nonce[6] = data[7]; /* PN5 */ in gcmp_aad_nonce() 69 nonce[7] = data[6]; /* PN4 */ in gcmp_aad_nonce() 70 nonce[8] = data[5]; /* PN3 */ in gcmp_aad_nonce() 71 nonce[9] = data[4]; /* PN2 */ in gcmp_aad_nonce() 72 nonce[10] = data[1]; /* PN1 */ in gcmp_aad_nonce() 73 nonce[11] = data[0]; /* PN0 */ in gcmp_aad_nonce() 88 u8 aad[30], nonce[12], *plain; in gcmp_decrypt() local 103 gcmp_aad_nonce(padapter, hdr, data, aad, &aad_len, nonce); in gcmp_decrypt() [all …]
|
D | aes-ccm.c | 27 static void aes_ccm_auth_start(void *aes, size_t M, size_t L, const u8 *nonce, in aes_ccm_auth_start() argument 39 os_memcpy(&b[1], nonce, 15 - L); in aes_ccm_auth_start() 83 static void aes_ccm_encr_start(size_t L, const u8 *nonce, u8 *a) in aes_ccm_encr_start() argument 87 os_memcpy(&a[1], nonce, 15 - L); in aes_ccm_encr_start() 147 int aes_ccm_ae(const u8 *key, size_t key_len, const u8 *nonce, in aes_ccm_ae() argument 162 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, plain_len, x); in aes_ccm_ae() 166 aes_ccm_encr_start(L, nonce, a); in aes_ccm_ae() 177 int aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce, in aes_ccm_ad() argument 194 aes_ccm_encr_start(L, nonce, a); in aes_ccm_ad() 200 aes_ccm_auth_start(aes, M, L, nonce, aad, aad_len, crypt_len, x); in aes_ccm_ad()
|
D | aes-ctr.c | 24 int aes_ctr_encrypt(const u8 *key, size_t key_len, const u8 *nonce, in aes_ctr_encrypt() argument 36 os_memcpy(counter, nonce, AES_BLOCK_SIZE); in aes_ctr_encrypt() 66 int aes_128_ctr_encrypt(const u8 *key, const u8 *nonce, in aes_128_ctr_encrypt() argument 69 return aes_ctr_encrypt(key, 16, nonce, data, data_len); in aes_128_ctr_encrypt()
|
D | aes_wrap.h | 36 int __must_check aes_ctr_encrypt(const u8 *key, size_t key_len, const u8 *nonce, 38 int __must_check aes_128_ctr_encrypt(const u8 *key, const u8 *nonce, 41 const u8 *nonce, size_t nonce_len, 45 const u8 *nonce, size_t nonce_len, 65 int __must_check aes_ccm_ae(const u8 *key, size_t key_len, const u8 *nonce, 68 int __must_check aes_ccm_ad(const u8 *key, size_t key_len, const u8 *nonce,
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/mesh/src/ |
D | crypto.c | 180 static int bt_mesh_ccm_decrypt(const u8_t key[16], u8_t nonce[13], in bt_mesh_ccm_decrypt() 197 memcpy(pmsg + 1, nonce, 13); // 13:len in bt_mesh_ccm_decrypt() 211 memcpy(pmsg + 1, nonce, 13); // 13:len in bt_mesh_ccm_decrypt() 267 memcpy(pmsg + 1, nonce, 13); // 13:len in bt_mesh_ccm_decrypt() 300 memcpy(pmsg + 1, nonce, 13); // 13:len in bt_mesh_ccm_decrypt() 333 static int bt_mesh_ccm_encrypt(const u8_t key[16], u8_t nonce[13], in bt_mesh_ccm_encrypt() 344 BT_DBG("nonce %s", bt_hex(nonce, 13)); // 13:len in bt_mesh_ccm_encrypt() 353 memcpy(pmsg + 1, nonce, 13); // 13:len in bt_mesh_ccm_encrypt() 365 memcpy(pmsg + 1, nonce, 13); // 13:len in bt_mesh_ccm_encrypt() 436 memcpy(pmsg + 1, nonce, 13); // 13:len in bt_mesh_ccm_encrypt() [all …]
|
D | crypto.h | 88 u8_t nonce[13]) in bt_mesh_prov_nonce() 94 memcpy_s(nonce, sizeof(nonce), tmp + 3, 13); // 3:byte alignment, 13:size in bt_mesh_prov_nonce() 161 int bt_mesh_prov_decrypt(const u8_t key[16], u8_t nonce[13], 164 int bt_mesh_prov_encrypt(const u8_t key[16], u8_t nonce[13],
|
D | prov.c | 1080 u8_t nonce[13]; in send_prov_data() local 1090 err = bt_mesh_prov_nonce(link.dhkey, link.prov_salt, nonce); in send_prov_data() 1097 BT_DBG("Nonce: %s", bt_hex(nonce, 13)); // 13:len in send_prov_data() 1125 err = bt_mesh_prov_encrypt(session_key, nonce, &pdu->om_data[1], in send_prov_data() 1270 u8_t nonce[13]; // 13:array element in prov_data() local 1288 err = bt_mesh_prov_nonce(link.dhkey, link.prov_salt, nonce); in prov_data() 1295 BT_DBG("Nonce: %s", bt_hex(nonce, 13)); // 13:len in prov_data() 1296 err = bt_mesh_prov_decrypt(session_key, nonce, data, pdu); in prov_data()
|
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/core/ |
D | rtw_swcrypto.c | 226 u8 nonce[12], *npos; in _bip_gcmp_protect() local 232 _rtw_memcpy(nonce, get_addr2_ptr(whdr_pos), ETH_ALEN); in _bip_gcmp_protect() 233 npos = nonce + ETH_ALEN; in _bip_gcmp_protect() 241 if (aes_gmac(key, key_len, nonce, sizeof(nonce), in _bip_gcmp_protect() 260 const u8 *nonce[2]; in _tdls_generate_tpk() local 270 nonce[0] = SNonce; in _tdls_generate_tpk() 271 nonce[1] = ANonce; in _tdls_generate_tpk() 273 nonce[0] = ANonce; in _tdls_generate_tpk() 274 nonce[1] = SNonce; in _tdls_generate_tpk() 277 sha256_vector(2, nonce, len, key_input); in _tdls_generate_tpk()
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
D | chachapoly.h | 171 const unsigned char nonce[12], 303 const unsigned char nonce[12], 337 const unsigned char nonce[12],
|
D | chacha20.h | 140 const unsigned char nonce[12], 206 const unsigned char nonce[12],
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/ |
D | at_demo_hks.c | 161 hi_u8 nonce[ENC_PARAM_NONCE_LEN]; member 211 hks_encry_param->nonce.data = enc_param->nonce; in hks_get_enc_param() 212 hks_encry_param->nonce.size = enc_param->nonce_size; in hks_get_enc_param() 300 memcpy_s(enc_param->nonce, sizeof(enc_param->nonce), nonce_data, sizeof(nonce_data)); in hks_create_conn_enc_param() 304 blob_enc_param->nonce.data = enc_param->nonce; in hks_create_conn_enc_param() 305 blob_enc_param->nonce.size = enc_param->nonce_size; in hks_create_conn_enc_param() 575 memcpy_s(enc_param->nonce, sizeof(enc_param->nonce), nonce_data, sizeof(nonce_data)); in hks_create_cert_enc_param() 579 blob_enc_param->nonce.data = enc_param->nonce; in hks_create_cert_enc_param() 580 blob_enc_param->nonce.size = enc_param->nonce_size; in hks_create_cert_enc_param()
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/ext/tinycrypt/include/tinycrypt/ |
D | ccm_mode.h | 93 uint8_t *nonce; /* nonce required by CCM */ member 111 int tc_ccm_config(TCCcmMode_t c, TCAesKeySched_t sched, uint8_t *nonce,
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/ |
D | aes_gmac.c | 17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac() argument 42 memcpy(iv, nonce, GMAC_NONCE_LEN); in ieee80211_aes_gmac()
|
D | aes_gmac.h | 19 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce,
|
D | wpa.c | 1133 u8 nonce[GMAC_NONCE_LEN]; in ieee80211_crypto_aes_gmac_encrypt() local 1161 memcpy(nonce, hdr->addr2, ETH_ALEN); in ieee80211_crypto_aes_gmac_encrypt() 1162 bip_ipn_swap(nonce + ETH_ALEN, mmie->sequence_number); in ieee80211_crypto_aes_gmac_encrypt() 1165 if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, in ieee80211_crypto_aes_gmac_encrypt() 1179 u8 aad[GMAC_AAD_LEN], *mic, ipn[6], nonce[GMAC_NONCE_LEN]; in ieee80211_crypto_aes_gmac_decrypt() local 1207 memcpy(nonce, hdr->addr2, ETH_ALEN); in ieee80211_crypto_aes_gmac_decrypt() 1208 memcpy(nonce + ETH_ALEN, ipn, 6); in ieee80211_crypto_aes_gmac_decrypt() 1213 if (ieee80211_aes_gmac(key->u.aes_gmac.tfm, aad, nonce, in ieee80211_crypto_aes_gmac_decrypt()
|
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/include/ |
D | dhd_eapol.h | 156 unsigned char nonce[EAPOL_WPA_KEY_NONCE_LEN]; /* Nonce */ 172 unsigned char nonce[EAPOL_WPA_KEY_NONCE_LEN]; /* Nonce */
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
D | eapol.h | 158 unsigned char nonce[EAPOL_WPA_KEY_NONCE_LEN]; /* Nonce */ 173 unsigned char nonce[EAPOL_WPA_KEY_NONCE_LEN]; /* Nonce */
|
/device/soc/telink/b91/b91_ble_sdk/algorithm/aes_ccm/ |
D | aes_ccm.h | 40 ble_cyrpt_nonce_t nonce; member
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/include/ |
D | eapol.h | 128 unsigned char nonce[EAPOL_WPA_KEY_NONCE_LEN]; /* Nonce */
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/ |
D | hks_types.h | 230 struct hks_blob nonce; /* Nonce value or iv vector */ member
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/ |
D | drv_symc.h | 409 hi_s32 drv_aead_ccm_add_n(hi_u32 chn_num, hi_u8 *nonce, hi_u32 nonce_len);
|
/device/soc/hpmicro/sdk/hpm_sdk/soc/HPM6360/ |
D | hpm_romapi.h | 262 const uint8_t *nonce, 273 const uint8_t *nonce,
|