Home
last modified time | relevance | path

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

/external/scapy/scapy/layers/tls/crypto/
Dprf.py117 def _tls_PRF(secret, label, seed, req_len): function
188 self.prf = _tls_PRF
/external/scapy/test/
Dtls.uts278 = Crypto - _tls_PRF behavior on test vectors borrowed from RFC 2202 (+ errata)
279 from scapy.layers.tls.crypto.prf import _tls_PRF
280 t1 = _tls_PRF(b'\x0b'*20, b"Test Label XXXX", b"Hi There", 80) == b'E\xcc\xeb\x12\x0b<\xbfh\x1f\xc3…
281 t2 = _tls_PRF(b'Jefe', b"Test Label YYYYYYY", b"what do ya want for nothing?", 80) == b'n\xbet\x06\…
282 t3 = _tls_PRF(b'\xaa'*20, b"Test Label ZZ", b'\xdd'*50, 80) == b"Ad\xe2B\xa0\xb0+G#\x0f%\x19\xae\xd…
283 t4 = _tls_PRF(b'\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x1…
284 t5 = _tls_PRF(b'\x0c'*20, b"Test Label KKKKKKKKK", b"Test With Truncation", 80) == b"gq\xa5\xc4\xf5…
285 t6 = _tls_PRF(b'\xaa'*80, b"Test Label PPPPPPPPP", b"Test Using Larger Than Block-Size Key - Hash K…
286 t7 = _tls_PRF(b'\xaa'*80, b"Test Label MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM", b"Test Using Larger Than B…