Home
last modified time | relevance | path

Searched refs:TLS_RANDOM_LEN (Results 1 – 22 of 22) sorted by relevance

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_server.c60 u8 seed[2 * TLS_RANDOM_LEN]; in tlsv1_server_derive_keys()
68 os_memcpy(seed, conn->client_random, TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
69 os_memcpy(seed + TLS_RANDOM_LEN, conn->server_random, in tlsv1_server_derive_keys()
70 TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
73 "master secret", seed, 2 * TLS_RANDOM_LEN, in tlsv1_server_derive_keys()
83 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
84 os_memcpy(seed + TLS_RANDOM_LEN, conn->client_random, TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
89 "key expansion", seed, 2 * TLS_RANDOM_LEN, in tlsv1_server_derive_keys()
478 size_t seed_len = 2 * TLS_RANDOM_LEN; in tlsv1_server_prf()
495 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_server_prf()
[all …]
Dtlsv1_client.c78 u8 seed[2 * TLS_RANDOM_LEN]; in tls_derive_keys()
86 os_memcpy(seed, conn->client_random, TLS_RANDOM_LEN); in tls_derive_keys()
87 os_memcpy(seed + TLS_RANDOM_LEN, conn->server_random, in tls_derive_keys()
88 TLS_RANDOM_LEN); in tls_derive_keys()
91 "master secret", seed, 2 * TLS_RANDOM_LEN, in tls_derive_keys()
101 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tls_derive_keys()
102 os_memcpy(seed + TLS_RANDOM_LEN, conn->client_random, TLS_RANDOM_LEN); in tls_derive_keys()
108 "key expansion", seed, 2 * TLS_RANDOM_LEN, in tls_derive_keys()
554 size_t seed_len = 2 * TLS_RANDOM_LEN; in tlsv1_client_prf()
571 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_client_prf()
[all …]
Dtlsv1_common.c367 crypto_hash_update(ctx, client_random, TLS_RANDOM_LEN); in tlsv12_key_x_server_params_hash()
368 crypto_hash_update(ctx, server_random, TLS_RANDOM_LEN); in tlsv12_key_x_server_params_hash()
392 crypto_hash_update(ctx, client_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
393 crypto_hash_update(ctx, server_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
403 crypto_hash_update(ctx, client_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
404 crypto_hash_update(ctx, server_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
Dtlsv1_server_i.h26 u8 client_random[TLS_RANDOM_LEN];
27 u8 server_random[TLS_RANDOM_LEN];
Dtlsv1_client_i.h25 u8 client_random[TLS_RANDOM_LEN];
26 u8 server_random[TLS_RANDOM_LEN];
Dtlsv1_client_write.c67 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello()
73 conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello()
98 os_memcpy(pos, conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello()
99 pos += TLS_RANDOM_LEN; in tls_send_client_hello()
Dtlsv1_server_write.c60 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { in tls_write_server_hello()
66 conn->server_random, TLS_RANDOM_LEN); in tls_write_server_hello()
91 os_memcpy(pos, conn->server_random, TLS_RANDOM_LEN); in tls_write_server_hello()
92 pos += TLS_RANDOM_LEN; in tls_write_server_hello()
Dtlsv1_server_read.c208 if (end - pos < TLS_RANDOM_LEN) { in tls_process_client_hello()
213 os_memcpy(conn->client_random, pos, TLS_RANDOM_LEN); in tls_process_client_hello()
214 pos += TLS_RANDOM_LEN; in tls_process_client_hello()
216 conn->client_random, TLS_RANDOM_LEN); in tls_process_client_hello()
Dtlsv1_common.h26 #define TLS_RANDOM_LEN 32 macro
Dtlsv1_client_read.c142 if (end - pos < TLS_RANDOM_LEN) in tls_process_server_hello()
145 os_memcpy(conn->server_random, pos, TLS_RANDOM_LEN); in tls_process_server_hello()
146 pos += TLS_RANDOM_LEN; in tls_process_server_hello()
148 conn->server_random, TLS_RANDOM_LEN); in tls_process_server_hello()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_server.c60 u8 seed[2 * TLS_RANDOM_LEN]; in tlsv1_server_derive_keys()
68 os_memcpy(seed, conn->client_random, TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
69 os_memcpy(seed + TLS_RANDOM_LEN, conn->server_random, in tlsv1_server_derive_keys()
70 TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
73 "master secret", seed, 2 * TLS_RANDOM_LEN, in tlsv1_server_derive_keys()
83 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
84 os_memcpy(seed + TLS_RANDOM_LEN, conn->client_random, TLS_RANDOM_LEN); in tlsv1_server_derive_keys()
89 "key expansion", seed, 2 * TLS_RANDOM_LEN, in tlsv1_server_derive_keys()
478 size_t seed_len = 2 * TLS_RANDOM_LEN; in tlsv1_server_prf()
495 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_server_prf()
[all …]
Dtlsv1_client.c54 u8 seed[2 * TLS_RANDOM_LEN]; in tls_derive_keys()
62 os_memcpy(seed, conn->client_random, TLS_RANDOM_LEN); in tls_derive_keys()
63 os_memcpy(seed + TLS_RANDOM_LEN, conn->server_random, in tls_derive_keys()
64 TLS_RANDOM_LEN); in tls_derive_keys()
67 "master secret", seed, 2 * TLS_RANDOM_LEN, in tls_derive_keys()
77 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tls_derive_keys()
78 os_memcpy(seed + TLS_RANDOM_LEN, conn->client_random, TLS_RANDOM_LEN); in tls_derive_keys()
84 "key expansion", seed, 2 * TLS_RANDOM_LEN, in tls_derive_keys()
530 size_t seed_len = 2 * TLS_RANDOM_LEN; in tlsv1_client_prf()
547 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_client_prf()
[all …]
Dtlsv1_common.c367 crypto_hash_update(ctx, client_random, TLS_RANDOM_LEN); in tlsv12_key_x_server_params_hash()
368 crypto_hash_update(ctx, server_random, TLS_RANDOM_LEN); in tlsv12_key_x_server_params_hash()
392 crypto_hash_update(ctx, client_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
393 crypto_hash_update(ctx, server_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
403 crypto_hash_update(ctx, client_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
404 crypto_hash_update(ctx, server_random, TLS_RANDOM_LEN); in tls_key_x_server_params_hash()
Dtlsv1_server_i.h26 u8 client_random[TLS_RANDOM_LEN];
27 u8 server_random[TLS_RANDOM_LEN];
Dtlsv1_client_i.h25 u8 client_random[TLS_RANDOM_LEN];
26 u8 server_random[TLS_RANDOM_LEN];
Dtlsv1_client_write.c79 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello()
85 conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello()
110 os_memcpy(pos, conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello()
111 pos += TLS_RANDOM_LEN; in tls_send_client_hello()
Dtlsv1_server_write.c60 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { in tls_write_server_hello()
66 conn->server_random, TLS_RANDOM_LEN); in tls_write_server_hello()
91 os_memcpy(pos, conn->server_random, TLS_RANDOM_LEN); in tls_write_server_hello()
92 pos += TLS_RANDOM_LEN; in tls_write_server_hello()
Dtlsv1_server_read.c208 if (end - pos < TLS_RANDOM_LEN) { in tls_process_client_hello()
213 os_memcpy(conn->client_random, pos, TLS_RANDOM_LEN); in tls_process_client_hello()
214 pos += TLS_RANDOM_LEN; in tls_process_client_hello()
216 conn->client_random, TLS_RANDOM_LEN); in tls_process_client_hello()
Dtlsv1_common.h26 #define TLS_RANDOM_LEN 32 macro
Dtlsv1_client_read.c142 if (end - pos < TLS_RANDOM_LEN) in tls_process_server_hello()
145 os_memcpy(conn->server_random, pos, TLS_RANDOM_LEN); in tls_process_server_hello()
146 pos += TLS_RANDOM_LEN; in tls_process_server_hello()
148 conn->server_random, TLS_RANDOM_LEN); in tls_process_server_hello()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Deap_fast_common.c71 #define TLS_RANDOM_LEN 32 in eap_fast_derive_master_secret() macro
73 u8 seed[2 * TLS_RANDOM_LEN]; in eap_fast_derive_master_secret()
76 client_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()
78 server_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()
85 os_memcpy(seed, server_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()
86 os_memcpy(seed + TLS_RANDOM_LEN, client_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Deap_fast_common.c71 #define TLS_RANDOM_LEN 32 in eap_fast_derive_master_secret() macro
73 u8 seed[2 * TLS_RANDOM_LEN]; in eap_fast_derive_master_secret()
76 client_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()
78 server_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()
85 os_memcpy(seed, server_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()
86 os_memcpy(seed + TLS_RANDOM_LEN, client_random, TLS_RANDOM_LEN); in eap_fast_derive_master_secret()