Home
last modified time | relevance | path

Searched refs:pre_master_secret (Results 1 – 9 of 9) sorted by relevance

/external/wpa_supplicant_8/src/tls/
Dtlsv1_client.c41 int tls_derive_pre_master_secret(u8 *pre_master_secret) in tls_derive_pre_master_secret() argument
43 WPA_PUT_BE16(pre_master_secret, TLS_VERSION); in tls_derive_pre_master_secret()
44 if (os_get_random(pre_master_secret + 2, in tls_derive_pre_master_secret()
52 const u8 *pre_master_secret, size_t pre_master_secret_len) in tls_derive_keys() argument
59 if (pre_master_secret) { in tls_derive_keys()
61 pre_master_secret, pre_master_secret_len); in tls_derive_keys()
66 pre_master_secret, pre_master_secret_len, in tls_derive_keys()
Dtlsv1_client_i.h81 int tls_derive_pre_master_secret(u8 *pre_master_secret);
83 const u8 *pre_master_secret, size_t pre_master_secret_len);
Dtlsv1_server.c57 const u8 *pre_master_secret, in tlsv1_server_derive_keys() argument
65 if (pre_master_secret) { in tlsv1_server_derive_keys()
67 pre_master_secret, pre_master_secret_len); in tlsv1_server_derive_keys()
72 pre_master_secret, pre_master_secret_len, in tlsv1_server_derive_keys()
Dtlsv1_client_write.c473 u8 pre_master_secret[TLS_PRE_MASTER_SECRET_LEN]; in tlsv1_key_x_rsa() local
477 if (tls_derive_pre_master_secret(pre_master_secret) < 0 || in tlsv1_key_x_rsa()
478 tls_derive_keys(conn, pre_master_secret, in tlsv1_key_x_rsa()
500 pre_master_secret, TLS_PRE_MASTER_SECRET_LEN, in tlsv1_key_x_rsa()
502 os_memset(pre_master_secret, 0, TLS_PRE_MASTER_SECRET_LEN); in tlsv1_key_x_rsa()
Dtlsv1_server_i.h79 const u8 *pre_master_secret,
/external/scapy/scapy/layers/tls/crypto/
Dprf.py199 def compute_master_secret(self, pre_master_secret, argument
209 return self.prf(pre_master_secret, seed, 48)
211 return self.prf(pre_master_secret, b"master secret", seed, 48)
/external/scapy/scapy/layers/tls/
Dkeyexchange.py729 s.pre_master_secret = pms
759 s.pre_master_secret = ZZ
790 s.pre_master_secret = pms
814 s.pre_master_secret = ZZ
873 s.pre_master_secret = pms
888 s.pre_master_secret = enc
Dsession.py426 self.pre_master_secret = None
523 if self.pre_master_secret is None:
530 ms = self.pwcs.prf.compute_master_secret(self.pre_master_secret,
/external/scapy/test/
Dsslv2.uts110 assert(not s.pre_master_secret)