Home
last modified time | relevance | path

Searched refs:_tls_P_SHA1 (Results 1 – 2 of 2) sorted by relevance

/external/scapy/scapy/layers/tls/crypto/
Dprf.py56 def _tls_P_SHA1(secret, seed, req_len): function
139 a2 = _tls_P_SHA1(S2, label+seed, req_len)
/external/scapy/test/
Dtls.uts266 = Crypto - _tls_P_SHA1 behavior on test vectors borrowed from RFC 2202 (+ errata)
267 from scapy.layers.tls.crypto.prf import _tls_P_SHA1
268 t1 = _tls_P_SHA1(b'\x0b'*20, b"Hi There", 80) == b'\x13\r\x11Q7(\xc1\xad\x7f>%m\xfc\x08\xb6\xb9$\xb…
269 t2 = _tls_P_SHA1(b'Jefe', b"what do ya want for nothing?", 80) == b'\xba\xc4i\xf1\xa0\xc5eO\x844\xb…
270 t3 = _tls_P_SHA1(b'\xaa'*20, b'\xdd'*50, 80) == b'Lm\x848}\xe8?\x88\x82\x85\xc3\xe6\xc9\x1f\x80Z\xf…
271 t4 = _tls_P_SHA1(b'\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14…
272 t5 = _tls_P_SHA1(b'\x0c'*20, b"Test With Truncation", 80) == b'`\x1d\xe4\x98Q\xa1\xdbW\xc5a\xa9@\x8…
273 t6 = _tls_P_SHA1(b'\xaa'*80, b"Test Using Larger Than Block-Size Key - Hash Key First", 80) == b'\x…
274 t7 = _tls_P_SHA1(b'\xaa'*80, b"Test Using Larger Than Block-Size Key and Larger Than One Block-Size…