Searched refs:TLS_RANDOM_LEN (Results 1 – 11 of 11) sorted by relevance
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_server.c | 60 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() 471 u8 seed[2 * TLS_RANDOM_LEN]; in tlsv1_server_prf() 477 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_server_prf() [all …]
|
D | tlsv1_client.c | 54 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() 526 u8 seed[2 * TLS_RANDOM_LEN]; in tlsv1_client_prf() 532 os_memcpy(seed, conn->server_random, TLS_RANDOM_LEN); in tlsv1_client_prf() [all …]
|
D | tlsv1_common.c | 367 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()
|
D | tlsv1_server_i.h | 26 u8 client_random[TLS_RANDOM_LEN]; 27 u8 server_random[TLS_RANDOM_LEN];
|
D | tlsv1_client_i.h | 25 u8 client_random[TLS_RANDOM_LEN]; 26 u8 server_random[TLS_RANDOM_LEN];
|
D | tlsv1_client_write.c | 76 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello() 82 conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello() 107 os_memcpy(pos, conn->client_random, TLS_RANDOM_LEN); in tls_send_client_hello() 108 pos += TLS_RANDOM_LEN; in tls_send_client_hello()
|
D | tlsv1_server_write.c | 57 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { in tls_write_server_hello() 63 conn->server_random, TLS_RANDOM_LEN); in tls_write_server_hello() 88 os_memcpy(pos, conn->server_random, TLS_RANDOM_LEN); in tls_write_server_hello() 89 pos += TLS_RANDOM_LEN; in tls_write_server_hello()
|
D | tlsv1_server_read.c | 199 if (end - pos < TLS_RANDOM_LEN) in tls_process_client_hello() 202 os_memcpy(conn->client_random, pos, TLS_RANDOM_LEN); in tls_process_client_hello() 203 pos += TLS_RANDOM_LEN; in tls_process_client_hello() 205 conn->client_random, TLS_RANDOM_LEN); in tls_process_client_hello()
|
D | tlsv1_common.h | 26 #define TLS_RANDOM_LEN 32 macro
|
D | tlsv1_client_read.c | 142 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()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_fast_common.c | 71 #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()
|