Lines Matching refs:secret
28 int tls13_hkdf_expand(SSL *s, const EVP_MD *md, const unsigned char *secret, in tls13_hkdf_expand() argument
95 || EVP_PKEY_CTX_set1_hkdf_key(pctx, secret, hashlen) <= 0 in tls13_hkdf_expand()
116 int tls13_derive_key(SSL *s, const EVP_MD *md, const unsigned char *secret, in tls13_derive_key() argument
125 return tls13_hkdf_expand(s, md, secret, keylabel, sizeof(keylabel) - 1, in tls13_derive_key()
133 int tls13_derive_iv(SSL *s, const EVP_MD *md, const unsigned char *secret, in tls13_derive_iv() argument
142 return tls13_hkdf_expand(s, md, secret, ivlabel, sizeof(ivlabel) - 1, in tls13_derive_iv()
147 const unsigned char *secret, in tls13_derive_finishedkey() argument
156 return tls13_hkdf_expand(s, md, secret, finishedlabel, in tls13_derive_finishedkey()
365 size_t labellen, unsigned char *secret, in derive_secret_key_and_iv() argument
382 secret, hashlen, 1)) { in derive_secret_key_and_iv()
415 if (!tls13_derive_key(s, md, secret, key, keylen) in derive_secret_key_and_iv()
416 || !tls13_derive_iv(s, md, secret, iv, ivlen)) { in derive_secret_key_and_iv()
459 unsigned char secret[EVP_MAX_MD_SIZE]; in tls13_change_cipher_state() local
675 insecret, hash, label, labellen, secret, iv, in tls13_change_cipher_state()
682 memcpy(s->server_app_traffic_secret, secret, hashlen); in tls13_change_cipher_state()
699 memcpy(s->client_app_traffic_secret, secret, hashlen); in tls13_change_cipher_state()
701 if (!ssl_log_secret(s, log_label, secret, hashlen)) { in tls13_change_cipher_state()
707 && !tls13_derive_finishedkey(s, ssl_handshake_md(s), secret, in tls13_change_cipher_state()
719 OPENSSL_cleanse(secret, sizeof(secret)); in tls13_change_cipher_state()
733 unsigned char secret[EVP_MAX_MD_SIZE]; in tls13_update_key() local
756 sizeof(application_traffic) - 1, secret, iv, in tls13_update_key()
762 memcpy(insecret, secret, hashlen); in tls13_update_key()
767 OPENSSL_cleanse(secret, sizeof(secret)); in tls13_update_key()