Lines Matching refs:pms

3423     OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen);  in ssl3_free()
3453 OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen); in ssl3_clear()
4730 int ssl_generate_master_secret(SSL_CONNECTION *s, unsigned char *pms, in ssl_generate_master_secret() argument
4758 memcpy(t, pms, pmslen); in ssl_generate_master_secret()
4780 s->session->master_key, pms, pmslen, in ssl_generate_master_secret()
4789 if (pms) { in ssl_generate_master_secret()
4791 OPENSSL_clear_free(pms, pmslen); in ssl_generate_master_secret()
4793 OPENSSL_cleanse(pms, pmslen); in ssl_generate_master_secret()
4796 s->s3.tmp.pms = NULL; in ssl_generate_master_secret()
4900 int ssl_gensecret(SSL_CONNECTION *s, unsigned char *pms, size_t pmslen) in ssl_gensecret() argument
4917 rv = rv && tls13_generate_handshake_secret(s, pms, pmslen); in ssl_gensecret()
4919 rv = ssl_generate_master_secret(s, pms, pmslen, 0); in ssl_gensecret()
4929 unsigned char *pms = NULL; in ssl_derive() local
4951 pms = OPENSSL_malloc(pmslen); in ssl_derive()
4952 if (pms == NULL) { in ssl_derive()
4957 if (EVP_PKEY_derive(pctx, pms, &pmslen) <= 0) { in ssl_derive()
4964 rv = ssl_gensecret(s, pms, pmslen); in ssl_derive()
4967 s->s3.tmp.pms = pms; in ssl_derive()
4969 pms = NULL; in ssl_derive()
4974 OPENSSL_clear_free(pms, pmslen); in ssl_derive()
4985 unsigned char *pms = NULL; in ssl_decapsulate() local
5003 pms = OPENSSL_malloc(pmslen); in ssl_decapsulate()
5004 if (pms == NULL) { in ssl_decapsulate()
5009 if (EVP_PKEY_decapsulate(pctx, pms, &pmslen, ct, ctlen) <= 0) { in ssl_decapsulate()
5016 rv = ssl_gensecret(s, pms, pmslen); in ssl_decapsulate()
5019 s->s3.tmp.pms = pms; in ssl_decapsulate()
5021 pms = NULL; in ssl_decapsulate()
5026 OPENSSL_clear_free(pms, pmslen); in ssl_decapsulate()
5036 unsigned char *pms = NULL, *ct = NULL; in ssl_encapsulate() local
5055 pms = OPENSSL_malloc(pmslen); in ssl_encapsulate()
5057 if (pms == NULL || ct == NULL) { in ssl_encapsulate()
5062 if (EVP_PKEY_encapsulate(pctx, ct, &ctlen, pms, &pmslen) <= 0) { in ssl_encapsulate()
5069 rv = ssl_gensecret(s, pms, pmslen); in ssl_encapsulate()
5072 s->s3.tmp.pms = pms; in ssl_encapsulate()
5074 pms = NULL; in ssl_encapsulate()
5086 OPENSSL_clear_free(pms, pmslen); in ssl_encapsulate()