Home
last modified time | relevance | path

Searched refs:hashsize (Results 1 – 4 of 4) sorted by relevance

/openssl/test/
H A Dtls13secretstest.c246 size_t hashsize; in test_secret() local
253 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashsize)) { in test_secret()
258 if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize, in test_secret()
259 gensecret, hashsize, 1)) { in test_secret()
264 if (!TEST_mem_eq(gensecret, hashsize, ref_secret, hashsize)) in test_secret()
292 size_t hashsize; in test_handshake_secrets() local
330 hashsize = EVP_MD_get_size(ssl_handshake_md(s)); in test_handshake_secrets()
331 if (!TEST_size_t_eq(sizeof(client_hts), hashsize)) in test_handshake_secrets()
346 if (!TEST_size_t_eq(sizeof(server_hts), hashsize)) in test_handshake_secrets()
380 if (!TEST_size_t_eq(sizeof(client_ats), hashsize)) in test_handshake_secrets()
[all …]
/openssl/ssl/
H A Dtls13_enc.c842 unsigned int hashsize, datalen; in tls13_export_keying_material() local
853 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material()
858 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material()
860 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material()
882 unsigned int hashsize, datalen; in tls13_export_keying_material_early() local
915 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material_early()
920 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material_early()
922 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material_early()
/openssl/ssl/statem/
H A Dextensions.c1553 size_t bindersize, labelsize, hashsize; in tls_psk_do_binder() local
1564 hashsize = (size_t)hashsizei; in tls_psk_do_binder()
1613 hashsize, binderkey, hashsize, 1)) { in tls_psk_do_binder()
1619 if (!tls13_derive_finishedkey(s, md, binderkey, finishedkey, hashsize)) { in tls_psk_do_binder()
1679 hashsize); in tls_psk_do_binder()
1688 bindersize = hashsize; in tls_psk_do_binder()
1691 || EVP_DigestSignUpdate(mctx, hash, hashsize) <= 0 in tls_psk_do_binder()
1693 || bindersize != hashsize) { in tls_psk_do_binder()
1702 ret = (CRYPTO_memcmp(binderin, binderout, hashsize) == 0); in tls_psk_do_binder()
H A Dextensions_srvr.c1029 int hashsize; in tls_parse_ctos_psk() local
1230 hashsize = EVP_MD_get_size(md); in tls_parse_ctos_psk()
1231 if (hashsize <= 0) in tls_parse_ctos_psk()
1246 if (PACKET_remaining(&binder) != (size_t)hashsize) { in tls_parse_ctos_psk()

Completed in 28 milliseconds