| /src/external/bsd/wpa/dist/src/crypto/ |
| aes-eax.c | 20 * @nonce_len: Nonce length in bytes 28 int aes_128_eax_encrypt(const u8 *key, const u8 *nonce, size_t nonce_len, 38 if (nonce_len > data_len) 39 buf_len = nonce_len; 53 os_memcpy(buf + 16, nonce, nonce_len); 54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac)) 84 * @nonce_len: Nonce length in bytes 92 int aes_128_eax_decrypt(const u8 *key, const u8 *nonce, size_t nonce_len, 102 if (nonce_len > data_len) 103 buf_len = nonce_len; [all...] |
| aes_wrap.h | 41 const u8 *nonce, size_t nonce_len, 45 const u8 *nonce, size_t nonce_len,
|
| /src/crypto/external/apache2/openssl/dist/providers/implementations/include/prov/ |
| hmac_drbg.h | 27 const unsigned char *nonce, size_t nonce_len,
|
| /src/external/bsd/wpa/dist/src/common/ |
| dpp_auth.c | 61 size_t nonce_len, 152 WPA_PUT_LE16(pos, nonce_len - 1); 154 os_memcpy(pos, auth->i_nonce, nonce_len - 1); 155 pos += nonce_len - 1; 163 WPA_PUT_LE16(pos, nonce_len); 165 os_memcpy(pos, auth->i_nonce, nonce_len); 166 pos += nonce_len; 236 size_t nonce_len, 315 WPA_PUT_LE16(pos, nonce_len); 317 os_memcpy(pos, r_nonce, nonce_len); 420 size_t nonce_len; local 1170 size_t nonce_len; local [all...] |
| dpp_reconfig.c | 138 4 + auth->curve->nonce_len; 175 wpabuf_put_le16(msg, auth->curve->nonce_len); 176 wpabuf_put_data(msg, auth->c_nonce, auth->curve->nonce_len); 310 if (random_get_bytes(auth->c_nonce, auth->curve->nonce_len)) { 340 clear_len = 4 + auth->curve->nonce_len + 348 wpabuf_put_le16(clear, auth->curve->nonce_len); 349 wpabuf_put_data(clear, auth->c_nonce, auth->curve->nonce_len); 362 4 + auth->curve->nonce_len + 388 wpabuf_put_le16(msg, auth->curve->nonce_len); 389 wpabuf_put_data(msg, auth->e_nonce, auth->curve->nonce_len); [all...] |
| dpp_crypto.c | 447 size_t nonce_len = auth->curve->nonce_len; local 462 os_memcpy(nonces, auth->i_nonce, nonce_len); 463 os_memcpy(&nonces[nonce_len], auth->r_nonce, nonce_len); 480 res = dpp_hmac_vector(hash_len, nonces, 2 * nonce_len, 892 size_t nonce_len; local 897 nonce_len = auth->curve->nonce_len; 924 len[num_elem] = nonce_len; 975 size_t nonce_len; local [all...] |
| dpp.c | 786 size_t nonce_len; local 797 nonce_len = auth->curve->nonce_len; 798 if (random_get_bytes(auth->e_nonce, nonce_len)) { 802 wpa_hexdump(MSG_DEBUG, "DPP: E-nonce", auth->e_nonce, nonce_len); 807 clear_len = 4 + nonce_len + 4 + json_len; 838 wpabuf_put_le16(clear, nonce_len - 1); 839 wpabuf_put_data(clear, auth->e_nonce, nonce_len - 1); 850 wpabuf_put_le16(clear, nonce_len); 851 wpabuf_put_data(clear, auth->e_nonce, nonce_len); 3598 size_t nonce_len, clear_len, attr_len; local 3816 size_t nonce_len, clear_len, attr_len; local [all...] |
| /src/crypto/external/bsd/openssl/dist/providers/implementations/rands/ |
| test_rng.c | 46 size_t entropy_len, entropy_pos, nonce_len; member in struct:__anon1621 136 memcpy(out, t->nonce, t->nonce_len); 137 return t->nonce_len; 202 t->nonce_len = size;
|
| drbg_hash.c | 243 * nonce is a string of bytes of length nonce_len. 250 const unsigned char *nonce, size_t nonce_len, 261 ent, ent_len, nonce, nonce_len, pstr, pstr_len)
|
| drbg_hmac.c | 117 * nonce = nonce data (Can be NULL) of length nonce_len. 124 const unsigned char *nonce, size_t nonce_len, 139 return drbg_hmac_update(drbg, ent, ent_len, nonce, nonce_len, pstr,
|
| /src/external/bsd/wpa/dist/src/eap_common/ |
| eap_eke_common.c | 494 data_len = label_len + id_s_len + id_p_len + 2 * sess->nonce_len; 505 os_memcpy(pos, nonce_p, sess->nonce_len); 506 pos += sess->nonce_len; 507 os_memcpy(pos, nonce_s, sess->nonce_len); 539 data_len = label_len + id_s_len + id_p_len + 2 * sess->nonce_len; 550 os_memcpy(pos, nonce_p, sess->nonce_len); 551 pos += sess->nonce_len; 552 os_memcpy(pos, nonce_s, sess->nonce_len); 708 sess->nonce_len = eap_eke_nonce_len(prf); 713 if (sess->prf_len < 0 || sess->nonce_len < 0 || sess->auth_len < 0 | [all...] |
| eap_eke_common.h | 74 int nonce_len; member in struct:eap_eke_session
|
| ikev2_common.h | 290 const u8 *nonce, size_t nonce_len, 309 size_t nonce_len; member in struct:ikev2_payloads
|
| ikev2_common.c | 318 payloads->nonce_len = pdatalen; 373 const u8 *nonce, size_t nonce_len, 402 sign_len = wpabuf_len(sign_msg) + nonce_len + prf->hash_len; 409 os_memcpy(pos, nonce, nonce_len); 410 pos += nonce_len;
|
| /src/external/bsd/wpa/dist/src/eap_server/ |
| eap_server_eke.c | 321 if (random_get_bytes(data->nonce_s, data->sess.nonce_len)) { 327 data->nonce_s, data->sess.nonce_len); 329 os_memcpy(nonces, data->nonce_p, data->sess.nonce_len); 330 os_memcpy(nonces + data->sess.nonce_len, data->nonce_s, 331 data->sess.nonce_len); 333 if (eap_eke_prot(&data->sess, nonces, 2 * data->sess.nonce_len, 570 if (decrypt_len < (size_t) data->sess.nonce_len) { 576 data->nonce_p, data->sess.nonce_len); 619 if (decrypt_len < (size_t) data->sess.nonce_len) { 625 nonce, data->sess.nonce_len); [all...] |
| /src/external/bsd/wpa/dist/src/eap_peer/ |
| eap_eke.c | 464 if (random_get_bytes(data->nonce_p, data->sess.nonce_len)) { 470 data->nonce_p, data->sess.nonce_len); 472 if (eap_eke_prot(&data->sess, data->nonce_p, data->sess.nonce_len, 539 if (decrypt_len != (size_t) 2 * data->sess.nonce_len) { 545 nonces, 2 * data->sess.nonce_len); 546 if (os_memcmp(data->nonce_p, nonces, data->sess.nonce_len) != 0) { 552 os_memcpy(data->nonce_s, nonces + data->sess.nonce_len, 553 data->sess.nonce_len); 555 data->nonce_s, data->sess.nonce_len); 588 if (eap_eke_prot(&data->sess, data->nonce_s, data->sess.nonce_len, [all...] |
| /src/crypto/external/apache2/openssl/dist/ssl/record/methods/ |
| tls13_meth.c | 94 size_t nonce_len, offset, loop, hdrlen, taglen; local 132 /* For integrity-only ciphers, nonce_len is same as MAC size */ 134 nonce_len = EVP_MAC_CTX_get_mac_size(rl->mac_ctx); 143 nonce_len = (size_t)ivlen; 157 if (nonce_len < SEQ_NUM_SIZE) { 162 offset = nonce_len - SEQ_NUM_SIZE; 189 || !EVP_MAC_update(mac_ctx, nonce, nonce_len)
|
| /src/crypto/external/apache2/openssl/dist/providers/implementations/rands/ |
| test_rng.c | 49 size_t entropy_len, entropy_pos, nonce_len; member in struct:__anon580 177 i = t->nonce_len > max_noncelen ? max_noncelen : t->nonce_len; 257 t->nonce_len = size;
|
| drbg_hmac.c | 112 * nonce = nonce data (Can be NULL) of length nonce_len. 119 const unsigned char *nonce, size_t nonce_len, 132 return drbg_hmac_update(hmac, ent, ent_len, nonce, nonce_len, pstr, 137 const unsigned char *nonce, size_t nonce_len, 141 nonce, nonce_len, pstr, pstr_len);
|
| drbg_hash.c | 248 * nonce is a string of bytes of length nonce_len. 255 const unsigned char *nonce, size_t nonce_len, 266 ent, ent_len, nonce, nonce_len, pstr, pstr_len)
|
| /src/crypto/external/apache2/openssl/dist/crypto/evp/ |
| e_chacha20_poly1305.c | 162 int aad, mac_inited, tag_len, nonce_len; member in struct:__anon286 189 if (actx->nonce_len <= CHACHA_CTR_SIZE) 190 memcpy(temp + CHACHA_CTR_SIZE - actx->nonce_len, iv, 191 actx->nonce_len); 516 actx->nonce_len = 12; 534 *(int *)ptr = actx->nonce_len; 540 actx->nonce_len = arg;
|
| /src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| e_chacha20_poly1305.c | 159 int aad, mac_inited, tag_len, nonce_len; member in struct:__anon1395 186 if (actx->nonce_len <= CHACHA_CTR_SIZE) 187 memcpy(temp + CHACHA_CTR_SIZE - actx->nonce_len, iv, 188 actx->nonce_len); 515 actx->nonce_len = 12; 534 *(int *)ptr = actx->nonce_len; 540 actx->nonce_len = arg;
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| e_chacha20_poly1305.c | 157 int aad, mac_inited, tag_len, nonce_len; member in struct:__anon2037 184 if (actx->nonce_len <= CHACHA_CTR_SIZE) 185 memcpy(temp + CHACHA_CTR_SIZE - actx->nonce_len, iv, 186 actx->nonce_len); 519 actx->nonce_len = 12; 538 *(int *)ptr = actx->nonce_len; 544 actx->nonce_len = arg;
|
| /src/crypto/external/apache2/openssl/dist/ssl/quic/ |
| quic_record_rx.c | 895 int l = 0, l2 = 0, is_old_key, nonce_len; local 940 nonce_len = EVP_CIPHER_CTX_get_iv_length(cctx); 941 if (!ossl_assert(nonce_len >= (int)sizeof(QUIC_PN))) 944 memcpy(nonce, el->iv[cctx_idx], nonce_len); 946 nonce[nonce_len - i - 1] ^= (unsigned char)(pn >> (i * 8));
|
| quic_record_tx.c | 486 int l = 0, l2 = 0, nonce_len; local 520 nonce_len = EVP_CIPHER_CTX_get_iv_length(cctx); 521 if (!ossl_assert(nonce_len >= (int)sizeof(QUIC_PN))) { 526 memcpy(nonce, el->iv[0], (size_t)nonce_len); 528 nonce[nonce_len - i - 1] ^= (unsigned char)(pn >> (i * 8));
|