/third_party/mbedtls/programs/ssl/ |
D | ssl_test_common_source.c | 44 memcpy( keys->randbytes, client_random, 32 ); in eap_tls_key_derivation() 45 memcpy( keys->randbytes + 32, server_random, 32 ); in eap_tls_key_derivation() 136 memcpy( keys->randbytes, client_random, 32 ); in dtls_srtp_key_derivation() 137 memcpy( keys->randbytes + 32, server_random, 32 ); in dtls_srtp_key_derivation()
|
D | ssl_test_lib.h | 101 unsigned char randbytes[64]; member 117 unsigned char randbytes[64]; member
|
D | ssl_client2.c | 2180 eap_tls_keying.randbytes, in main() 2181 sizeof( eap_tls_keying.randbytes ), in main() 2202 eap_tls_keying.randbytes, in main() 2203 sizeof( eap_tls_keying.randbytes ), in main() 2241 dtls_srtp_keying.randbytes, in main() 2242 sizeof( dtls_srtp_keying.randbytes ), in main()
|
D | ssl_server2.c | 3298 eap_tls_keying.randbytes, in main() 3299 sizeof( eap_tls_keying.randbytes ), in main() 3320 eap_tls_keying.randbytes, in main() 3321 sizeof( eap_tls_keying.randbytes ), in main() 3359 dtls_srtp_keying.randbytes, in main() 3360 sizeof( dtls_srtp_keying.randbytes ), in main()
|
/third_party/mbedtls/library/ |
D | ssl_tls13_keys.c | 1013 handshake->randbytes + 32, in mbedtls_ssl_tls13_generate_handshake_keys() 1014 handshake->randbytes, in mbedtls_ssl_tls13_generate_handshake_keys() 1021 handshake->randbytes + 32, in mbedtls_ssl_tls13_generate_handshake_keys() 1022 handshake->randbytes, in mbedtls_ssl_tls13_generate_handshake_keys() 1218 handshake->randbytes + 32, in mbedtls_ssl_tls13_generate_application_keys() 1219 handshake->randbytes, in mbedtls_ssl_tls13_generate_application_keys() 1226 handshake->randbytes + 32, in mbedtls_ssl_tls13_generate_application_keys() 1227 handshake->randbytes, in mbedtls_ssl_tls13_generate_application_keys() 1245 mbedtls_platform_zeroize( ssl->handshake->randbytes, in mbedtls_ssl_tls13_generate_application_keys() 1246 sizeof( ssl->handshake->randbytes ) ); in mbedtls_ssl_tls13_generate_application_keys()
|
D | ssl_tls.c | 698 const unsigned char randbytes[64], in ssl_tls12_populate_transform() 738 memcpy( transform->randbytes, randbytes, sizeof( transform->randbytes ) ); in ssl_tls12_populate_transform() 800 ret = tls_prf( master, 48, "key expansion", randbytes, 64, keyblk, 256 ); in ssl_tls12_populate_transform() 810 MBEDTLS_SSL_DEBUG_BUF( 4, "random bytes", randbytes, 64 ); in ssl_tls12_populate_transform() 997 randbytes + 32, in ssl_tls12_populate_transform() 998 randbytes, in ssl_tls12_populate_transform() 1188 unsigned char const *salt = handshake->randbytes; in ssl_compute_master() 1321 memcpy( tmp, ssl->handshake->randbytes, 64 ); in mbedtls_ssl_derive_keys() 1322 memcpy( ssl->handshake->randbytes, tmp + 32, 32 ); in mbedtls_ssl_derive_keys() 1323 memcpy( ssl->handshake->randbytes + 32, tmp, 32 ); in mbedtls_ssl_derive_keys() [all …]
|
D | ssl_tls13_client.c | 709 memcpy( p, ssl->handshake->randbytes, MBEDTLS_CLIENT_HELLO_RANDOM_LEN ); in ssl_tls13_write_client_hello_body() 850 ssl->handshake->randbytes, in ssl_tls13_prepare_client_hello() 1112 memcpy( &ssl->handshake->randbytes[MBEDTLS_CLIENT_HELLO_RANDOM_LEN], p, in ssl_tls13_parse_server_hello()
|
D | ssl_misc.h | 787 unsigned char randbytes[MBEDTLS_CLIENT_HELLO_RANDOM_LEN + member 939 unsigned char randbytes[MBEDTLS_SERVER_HELLO_RANDOM_LEN + member
|
D | ssl_cli.c | 834 unsigned char *p = ssl->handshake->randbytes; in ssl_generate_random() 997 memcpy( p, ssl->handshake->randbytes, 32 ); in ssl_write_client_hello() 2032 memcpy( ssl->handshake->randbytes + 32, buf + 2, 32 ); in ssl_parse_server_hello()
|
D | ssl_srv.c | 1428 memcpy( ssl->handshake->randbytes, buf + 2, 32 ); in ssl_parse_client_hello() 2508 memcpy( ssl->handshake->randbytes + 32, buf + 6, 32 ); in ssl_write_server_hello()
|
/third_party/python/Lib/test/ |
D | test_random.py | 427 data = self.gen.randbytes(n) 431 self.assertEqual(self.gen.randbytes(0), b'') 434 self.assertRaises(TypeError, self.gen.randbytes) 435 self.assertRaises(TypeError, self.gen.randbytes, 1, 2) 436 self.assertRaises(ValueError, self.gen.randbytes, -1) 437 self.assertRaises(TypeError, self.gen.randbytes, 1.0) 910 self.assertEqual(self.gen.randbytes(16), expected) 914 self.assertEqual(self.gen.randbytes(0), b'') 915 self.assertEqual(self.gen.randbytes(16), expected) 919 self.assertEqual(b''.join([self.gen.randbytes(4) for _ in range(4)]), [all …]
|
D | test_zlib.py | 145 data = random.randbytes(_1M * 10) 498 data = gen.randbytes(17 * 1024)
|
D | test_zipfile.py | 20 from random import randint, random, randbytes 326 junk = randbytes(file_size) 2433 cls.data1 = b'111' + randbytes(10000) 2434 cls.data2 = b'222' + randbytes(10000)
|
D | test_bz2.py | 724 block = random.randbytes(blocksize)
|
D | test_lzma.py | 356 block = random.randbytes(blocksize)
|
D | test_tarfile.py | 394 data = Random(0).randbytes(512)
|
/third_party/python/Lib/ |
D | secrets.py | 46 return _sysrand.randbytes(nbytes)
|
D | random.py | 285 def randbytes(self, n): member in Random 834 def randbytes(self, n): member in SystemRandom 880 randbytes = _inst.randbytes variable
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0b1.rst | 523 Remove ``_random.Random.randbytes()``: the C implementation of 524 ``randbytes()``. Implement the method in Python to ease subclassing: 525 ``randbytes()`` now directly reuses ``getrandbits()``.
|
D | 3.9.0a6.rst | 477 Add :func:`random.randbytes` function and :meth:`random.Random.randbytes`
|
D | 3.10.0a5.rst | 245 Add :func:`randbytes` to ``random.__all__``.
|
/third_party/python/Doc/library/ |
D | random.rst | 110 .. function:: randbytes(n)
|
/third_party/python/Doc/whatsnew/ |
D | 3.9.rst | 635 Added a new :attr:`random.Random.randbytes` method: generate random bytes.
|
/third_party/mbedtls/ |
D | ChangeLog | 1499 * Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes, 1522 * Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
|