Home
last modified time | relevance | path

Searched refs:shared_key_len (Results 1 – 8 of 8) sorted by relevance

/openbsd/lib/libssl/
H A Dtls_key_share.c407 uint8_t **shared_key, size_t *shared_key_len) in tls_key_share_derive_dhe() argument
413 shared_key_len); in tls_key_share_derive_dhe()
418 uint8_t **shared_key, size_t *shared_key_len) in tls_key_share_derive_ecdhe_ecp() argument
424 shared_key, shared_key_len); in tls_key_share_derive_ecdhe_ecp()
429 uint8_t **shared_key, size_t *shared_key_len) in tls_key_share_derive_x25519() argument
443 *shared_key_len = X25519_KEY_LENGTH; in tls_key_share_derive_x25519()
456 size_t *shared_key_len) in tls_key_share_derive() argument
461 *shared_key_len = 0; in tls_key_share_derive()
465 shared_key_len); in tls_key_share_derive()
469 shared_key_len); in tls_key_share_derive()
[all …]
H A Dssl_kex.c241 uint8_t **shared_key, size_t *shared_key_len) in ssl_kex_derive_dhe() argument
256 *shared_key_len = key_len; in ssl_kex_derive_dhe()
389 uint8_t **shared_key, size_t *shared_key_len) in ssl_kex_derive_ecdhe_ecp() argument
413 *shared_key_len = key_len; in ssl_kex_derive_ecdhe_ecp()
H A Dtls_internal.h96 size_t *shared_key_len);
H A Dtls13_client.c339 size_t shared_key_len = 0; in tls13_client_engage_record_protection() local
347 &shared_key_len)) in tls13_client_engage_record_protection()
378 shared_key_len, &context)) in tls13_client_engage_record_protection()
394 freezero(shared_key, shared_key_len); in tls13_client_engage_record_protection()
H A Dtls13_server.c377 size_t shared_key_len = 0; in tls13_server_engage_record_protection() local
383 &shared_key_len)) in tls13_server_engage_record_protection()
413 shared_key_len, &context)) in tls13_server_engage_record_protection()
433 freezero(shared_key, shared_key_len); in tls13_server_engage_record_protection()
H A Dssl_local.h1354 uint8_t **shared_key, size_t *shared_key_len);
1361 uint8_t **shared_key, size_t *shared_key_len);
/openbsd/regress/lib/libssl/exporter/
H A Dexportertest.c50 size_t shared_key_len; member
104 .shared_key_len = 32,
164 .shared_key_len = 32,
226 .shared_key_len = 32,
292 .shared_key_len = 32,
358 .shared_key_len = 32,
591 et->shared_key_len, &tls13_context)) { in exporter_test()
/openbsd/regress/lib/libcrypto/evp/
H A Devp_ecx_test.c535 size_t shared_key_len = 0; in ecx_x25519_derive_test() local
568 if (EVP_PKEY_derive(pkey_ctx, NULL, &shared_key_len) <= 0) { in ecx_x25519_derive_test()
572 if ((shared_key = malloc(shared_key_len)) == NULL) in ecx_x25519_derive_test()
574 if (EVP_PKEY_derive(pkey_ctx, shared_key, &shared_key_len) <= 0) { in ecx_x25519_derive_test()
579 if (shared_key_len != sizeof(shared_key_1)) { in ecx_x25519_derive_test()
581 shared_key_len, sizeof(shared_key_1)); in ecx_x25519_derive_test()
585 if (memcmp(shared_key, shared_key_1, shared_key_len) != 0) { in ecx_x25519_derive_test()
588 hexdump(shared_key, shared_key_len); in ecx_x25519_derive_test()
601 freezero(shared_key, shared_key_len); in ecx_x25519_derive_test()