Home
last modified time | relevance | path

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

/net-tools-latest/mbedtls-2.4.0/include/mbedtls/
Dssl_internal.h249 unsigned char randbytes[64]; /*!< random bytes */ member
/net-tools-latest/mbedtls-2.4.0/library/
Dssl_srv.c948 memset( ssl->handshake->randbytes, 0, 64 );
949 memcpy( ssl->handshake->randbytes + 32 - chal_len, p, chal_len );
1375 memcpy( ssl->handshake->randbytes, buf + 2, 32 );
2281 memcpy( ssl->handshake->randbytes + 32, buf + 6, 32 );
2922 mbedtls_md5_update( &mbedtls_md5, ssl->handshake->randbytes, 64 );
2927 mbedtls_sha1_update( &mbedtls_sha1, ssl->handshake->randbytes, 64 );
2965 mbedtls_md_update( &ctx, ssl->handshake->randbytes, 64 );
Dssl_cli.c670 unsigned char *p = ssl->handshake->randbytes;
763 memcpy( p, ssl->handshake->randbytes, 32 );
1512 memcpy( ssl->handshake->randbytes + 32, buf + 2, 32 );
2430 mbedtls_md5_update( &mbedtls_md5, ssl->handshake->randbytes, 64 );
2435 mbedtls_sha1_update( &mbedtls_sha1, ssl->handshake->randbytes, 64 );
2471 mbedtls_md_update( &ctx, ssl->handshake->randbytes, 64 );
Dssl_tls.c625 handshake->randbytes, 64, in mbedtls_ssl_derive_keys()
641 memcpy( tmp, handshake->randbytes, 64 ); in mbedtls_ssl_derive_keys()
642 memcpy( handshake->randbytes, tmp + 32, 32 ); in mbedtls_ssl_derive_keys()
643 memcpy( handshake->randbytes + 32, tmp, 32 ); in mbedtls_ssl_derive_keys()
659 handshake->randbytes, 64, keyblk, 256 ); in mbedtls_ssl_derive_keys()
669 MBEDTLS_SSL_DEBUG_BUF( 4, "random bytes", handshake->randbytes, 64 ); in mbedtls_ssl_derive_keys()
672 mbedtls_zeroize( handshake->randbytes, sizeof( handshake->randbytes ) ); in mbedtls_ssl_derive_keys()