Lines Matching refs:pms
1542 uint8_t *pms = NULL; in ssl3_send_client_key_exchange() local
1594 pms = OPENSSL_malloc(pms_len); in ssl3_send_client_key_exchange()
1595 if (pms == NULL) { in ssl3_send_client_key_exchange()
1606 pms[0] = hs->client_version >> 8; in ssl3_send_client_key_exchange()
1607 pms[1] = hs->client_version & 0xff; in ssl3_send_client_key_exchange()
1608 if (!RAND_bytes(&pms[2], SSL_MAX_MASTER_KEY_LENGTH - 2)) { in ssl3_send_client_key_exchange()
1624 !RSA_encrypt(rsa, &enc_pms_len, ptr, RSA_size(rsa), pms, pms_len, in ssl3_send_client_key_exchange()
1639 if (!SSL_ECDH_CTX_accept(&hs->ecdh_ctx, &child, &pms, &pms_len, &alert, in ssl3_send_client_key_exchange()
1657 pms = OPENSSL_malloc(pms_len); in ssl3_send_client_key_exchange()
1658 if (pms == NULL) { in ssl3_send_client_key_exchange()
1662 OPENSSL_memset(pms, 0, pms_len); in ssl3_send_client_key_exchange()
1679 !CBB_add_bytes(&child, pms, pms_len) || in ssl3_send_client_key_exchange()
1687 OPENSSL_cleanse(pms, pms_len); in ssl3_send_client_key_exchange()
1688 OPENSSL_free(pms); in ssl3_send_client_key_exchange()
1689 pms = new_pms; in ssl3_send_client_key_exchange()
1700 hs, hs->new_session->master_key, pms, pms_len); in ssl3_send_client_key_exchange()
1705 OPENSSL_cleanse(pms, pms_len); in ssl3_send_client_key_exchange()
1706 OPENSSL_free(pms); in ssl3_send_client_key_exchange()
1712 if (pms != NULL) { in ssl3_send_client_key_exchange()
1713 OPENSSL_cleanse(pms, pms_len); in ssl3_send_client_key_exchange()
1714 OPENSSL_free(pms); in ssl3_send_client_key_exchange()