/third_party/openssl/ssl/ |
D | s3_lib.c | 3361 OPENSSL_clear_free(s->s3.tmp.pms, s->s3.tmp.pmslen); in ssl3_free() 3380 OPENSSL_clear_free(s->s3.tmp.pms, s->s3.tmp.pmslen); in ssl3_clear() 4596 int ssl_generate_master_secret(SSL *s, unsigned char *pms, size_t pmslen, in ssl_generate_master_secret() argument 4612 pmslen = psklen; in ssl_generate_master_secret() 4614 pskpmslen = 4 + pmslen + psklen; in ssl_generate_master_secret() 4619 s2n(pmslen, t); in ssl_generate_master_secret() 4621 memset(t, 0, pmslen); in ssl_generate_master_secret() 4623 memcpy(t, pms, pmslen); in ssl_generate_master_secret() 4624 t += pmslen; in ssl_generate_master_secret() 4645 s->session->master_key, pms, pmslen, in ssl_generate_master_secret() [all …]
|
D | ssl_local.h | 1341 size_t pmslen; member 2460 __owur int ssl_generate_master_secret(SSL *s, unsigned char *pms, size_t pmslen, 2463 __owur int ssl_gensecret(SSL *s, unsigned char *pms, size_t pmslen);
|
/third_party/node/deps/openssl/openssl/ssl/ |
D | s3_lib.c | 3361 OPENSSL_clear_free(s->s3.tmp.pms, s->s3.tmp.pmslen); in ssl3_free() 3380 OPENSSL_clear_free(s->s3.tmp.pms, s->s3.tmp.pmslen); in ssl3_clear() 4596 int ssl_generate_master_secret(SSL *s, unsigned char *pms, size_t pmslen, in ssl_generate_master_secret() argument 4612 pmslen = psklen; in ssl_generate_master_secret() 4614 pskpmslen = 4 + pmslen + psklen; in ssl_generate_master_secret() 4619 s2n(pmslen, t); in ssl_generate_master_secret() 4621 memset(t, 0, pmslen); in ssl_generate_master_secret() 4623 memcpy(t, pms, pmslen); in ssl_generate_master_secret() 4624 t += pmslen; in ssl_generate_master_secret() 4645 s->session->master_key, pms, pmslen, in ssl_generate_master_secret() [all …]
|
D | ssl_local.h | 1365 size_t pmslen; member 2516 __owur int ssl_generate_master_secret(SSL *s, unsigned char *pms, size_t pmslen, 2519 __owur int ssl_gensecret(SSL *s, unsigned char *pms, size_t pmslen);
|
/third_party/openssl/ssl/statem/ |
D | statem_clnt.c | 2832 size_t pmslen = 0; in tls_construct_cke_rsa() local 2848 pmslen = SSL_MAX_MASTER_KEY_LENGTH; in tls_construct_cke_rsa() 2849 pms = OPENSSL_malloc(pmslen); in tls_construct_cke_rsa() 2857 if (RAND_bytes_ex(s->ctx->libctx, pms + 2, pmslen - 2, 0) <= 0) { in tls_construct_cke_rsa() 2870 || EVP_PKEY_encrypt(pctx, NULL, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa() 2875 || EVP_PKEY_encrypt(pctx, encdata, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa() 2889 if (!ssl_log_rsa_client_key_exchange(s, encdata, enclen, pms, pmslen)) { in tls_construct_cke_rsa() 2895 s->s3.tmp.pmslen = pmslen; in tls_construct_cke_rsa() 2899 OPENSSL_clear_free(pms, pmslen); in tls_construct_cke_rsa() 3024 size_t pmslen = 0; in tls_construct_cke_gost() local [all …]
|
D | extensions_srvr.c | 1707 if (ssl_gensecret(s, s->s3.tmp.pms, s->s3.tmp.pmslen) == 0) { in tls_construct_stoc_key_share()
|
/third_party/node/deps/openssl/openssl/ssl/statem/ |
D | statem_clnt.c | 2840 size_t pmslen = 0; in tls_construct_cke_rsa() local 2856 pmslen = SSL_MAX_MASTER_KEY_LENGTH; in tls_construct_cke_rsa() 2857 pms = OPENSSL_malloc(pmslen); in tls_construct_cke_rsa() 2865 if (RAND_bytes_ex(s->ctx->libctx, pms + 2, pmslen - 2, 0) <= 0) { in tls_construct_cke_rsa() 2878 || EVP_PKEY_encrypt(pctx, NULL, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa() 2883 || EVP_PKEY_encrypt(pctx, encdata, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa() 2897 if (!ssl_log_rsa_client_key_exchange(s, encdata, enclen, pms, pmslen)) { in tls_construct_cke_rsa() 2903 s->s3.tmp.pmslen = pmslen; in tls_construct_cke_rsa() 2907 OPENSSL_clear_free(pms, pmslen); in tls_construct_cke_rsa() 3032 size_t pmslen = 0; in tls_construct_cke_gost() local [all …]
|
D | extensions_srvr.c | 1741 if (ssl_gensecret(s, s->s3.tmp.pms, s->s3.tmp.pmslen) == 0) { in tls_construct_stoc_key_share()
|
/third_party/mbedtls/library/ |
D | ecjpake.c | 1102 size_t len, pmslen; in mbedtls_ecjpake_self_test() local 1145 pms, sizeof(pms), &pmslen, ecjpake_lgc, NULL) == 0); in mbedtls_ecjpake_self_test() 1155 TEST_ASSERT(len == pmslen); in mbedtls_ecjpake_self_test()
|
D | ssl_tls12_client.c | 1941 ssl->handshake->pmslen = 48; in ssl_write_encrypted_pms() 1963 p, ssl->handshake->pmslen, in ssl_write_encrypted_pms() 2736 &ssl->handshake->pmslen, in ssl_write_client_key_exchange() 2817 &ssl->handshake->pmslen); in ssl_write_client_key_exchange() 2870 &ssl->handshake->pmslen, in ssl_write_client_key_exchange() 3177 ssl->handshake->premaster, 32, &ssl->handshake->pmslen, in ssl_write_client_key_exchange()
|
D | ssl_tls12_server.c | 3523 ssl->handshake->pmslen = 48; in ssl_parse_encrypted_pms() 3527 for (i = 0; i < ssl->handshake->pmslen; i++) { in ssl_parse_encrypted_pms() 3647 &ssl->handshake->pmslen, in ssl_parse_client_key_exchange() 3701 &handshake->pmslen); in ssl_parse_client_key_exchange() 3733 &ssl->handshake->pmslen, in ssl_parse_client_key_exchange() 3970 ssl->handshake->premaster, 32, &ssl->handshake->pmslen, in ssl_parse_client_key_exchange()
|
D | ssl_tls.c | 6494 handshake->pmslen = PSA_TLS12_ECJPAKE_TO_PMS_DATA_SIZE; in ssl_compute_master() 6517 handshake->pmslen); in ssl_compute_master() 6529 ret = handshake->tls_prf(handshake->premaster, handshake->pmslen, in ssl_compute_master() 6540 handshake->pmslen); in ssl_compute_master() 6878 ssl->handshake->pmslen = p - ssl->handshake->premaster; in mbedtls_ssl_psk_derive_premaster()
|
D | ssl_misc.h | 974 size_t pmslen; /*!< premaster length */ member
|