Lines Matching refs:secret

34                          const unsigned char *secret,  in tls13_hkdf_expand_ex()  argument
76 (unsigned char *)secret, hashlen); in tls13_hkdf_expand_ex()
100 const unsigned char *secret, in tls13_hkdf_expand() argument
109 secret, label, labellen, data, datalen, in tls13_hkdf_expand()
122 const unsigned char *secret, in tls13_derive_key() argument
128 return tls13_hkdf_expand(s, md, secret, keylabel, sizeof(keylabel) - 1, in tls13_derive_key()
137 const unsigned char *secret, in tls13_derive_iv() argument
143 return tls13_hkdf_expand(s, md, secret, ivlabel, sizeof(ivlabel) - 1, in tls13_derive_iv()
148 const unsigned char *secret, in tls13_derive_finishedkey() argument
154 return tls13_hkdf_expand(s, md, secret, finishedlabel, in tls13_derive_finishedkey()
354 size_t labellen, unsigned char *secret, in derive_secret_key_and_iv() argument
371 secret, hashlen, 1)) { in derive_secret_key_and_iv()
439 if (!tls13_derive_key(s, md, secret, key, *keylen) in derive_secret_key_and_iv()
440 || !tls13_derive_iv(s, md, secret, *iv, *ivlen)) { in derive_secret_key_and_iv()
469 unsigned char secret[EVP_MAX_MD_SIZE]; in tls13_change_cipher_state() local
680 insecret, hash, label, labellen, secret, key, in tls13_change_cipher_state()
687 memcpy(s->server_app_traffic_secret, secret, hashlen); in tls13_change_cipher_state()
704 memcpy(s->client_app_traffic_secret, secret, hashlen); in tls13_change_cipher_state()
706 if (!ssl_log_secret(s, log_label, secret, hashlen)) { in tls13_change_cipher_state()
712 && !tls13_derive_finishedkey(s, ssl_handshake_md(s), secret, in tls13_change_cipher_state()
733 level, secret, hashlen, key, keylen, iv, in tls13_change_cipher_state()
749 OPENSSL_cleanse(secret, sizeof(secret)); in tls13_change_cipher_state()
763 unsigned char secret[EVP_MAX_MD_SIZE]; in tls13_update_key() local
788 sizeof(application_traffic) - 1, secret, key, in tls13_update_key()
794 memcpy(insecret, secret, hashlen); in tls13_update_key()
808 if (!ssl_log_secret(s, log_label, secret, hashlen)) { in tls13_update_key()
815 OPENSSL_cleanse(secret, sizeof(secret)); in tls13_update_key()