Home
last modified time | relevance | path

Searched refs:randbytes (Results 1 – 24 of 24) sorted by relevance

/third_party/mbedtls/programs/ssl/
Dssl_test_common_source.c44 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()
Dssl_test_lib.h101 unsigned char randbytes[64]; member
117 unsigned char randbytes[64]; member
Dssl_client2.c2180 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()
Dssl_server2.c3298 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/
Dssl_tls13_keys.c1013 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()
Dssl_tls.c698 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 …]
Dssl_tls13_client.c709 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()
Dssl_misc.h787 unsigned char randbytes[MBEDTLS_CLIENT_HELLO_RANDOM_LEN + member
939 unsigned char randbytes[MBEDTLS_SERVER_HELLO_RANDOM_LEN + member
Dssl_cli.c834 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()
Dssl_srv.c1428 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/
Dtest_random.py427 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 …]
Dtest_zlib.py145 data = random.randbytes(_1M * 10)
498 data = gen.randbytes(17 * 1024)
Dtest_zipfile.py20 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)
Dtest_bz2.py724 block = random.randbytes(blocksize)
Dtest_lzma.py356 block = random.randbytes(blocksize)
Dtest_tarfile.py394 data = Random(0).randbytes(512)
/third_party/python/Lib/
Dsecrets.py46 return _sysrand.randbytes(nbytes)
Drandom.py285 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/
D3.9.0b1.rst523 Remove ``_random.Random.randbytes()``: the C implementation of
524 ``randbytes()``. Implement the method in Python to ease subclassing:
525 ``randbytes()`` now directly reuses ``getrandbits()``.
D3.9.0a6.rst477 Add :func:`random.randbytes` function and :meth:`random.Random.randbytes`
D3.10.0a5.rst245 Add :func:`randbytes` to ``random.__all__``.
/third_party/python/Doc/library/
Drandom.rst110 .. function:: randbytes(n)
/third_party/python/Doc/whatsnew/
D3.9.rst635 Added a new :attr:`random.Random.randbytes` method: generate random bytes.
/third_party/mbedtls/
DChangeLog1499 * Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
1522 * Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,