Home
last modified time | relevance | path

Searched refs:random (Results 1 – 10 of 10) sorted by relevance

/optee_os/core/drivers/
H A Dhi16xx_rng.c72 } random; in hw_get_random_bytes() local
88 random.val = io_read32(r); in hw_get_random_bytes()
90 buffer[buffer_pos++] = random.byte[pos++]; in hw_get_random_bytes()
H A Dversal_trng.c1071 uint8_t random[TRNG_SEC_STRENGTH_LEN] = { 0 }; in hw_get_random_bytes() local
1082 if (trng_generate(&versal_trng, random, TRNG_SEC_STRENGTH_LEN, in hw_get_random_bytes()
1085 memcpy(p + i * TRNG_SEC_STRENGTH_LEN, random, in hw_get_random_bytes()
/optee_os/core/drivers/crypto/se050/adaptors/utils/
H A Dutils.c72 uint32_t random = 0; in generate_oid() local
76 if (crypto_rng_read(&random, sizeof(random))) in generate_oid()
79 oid = OID_MIN + (random & OID_MAX); in generate_oid()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_tls13_server.c1255 const unsigned char *random; in ssl_tls13_parse_client_hello() local
1318 random = p; in ssl_tls13_parse_client_hello()
1429 random, MBEDTLS_CLIENT_HELLO_RANDOM_LEN); in ssl_tls13_parse_client_hello()
1430 memcpy(&handshake->randbytes[0], random, MBEDTLS_CLIENT_HELLO_RANDOM_LEN); in ssl_tls13_parse_client_hello()
H A Dssl_tls.c408 const unsigned char *random, size_t rlen,
437 const unsigned char *random, size_t rlen,
448 const unsigned char *random, size_t rlen,
474 const unsigned char *random, size_t rlen, in mbedtls_ssl_tls_prf() argument
496 return tls_prf(secret, slen, label, random, rlen, dstbuf, dlen); in mbedtls_ssl_tls_prf()
6773 const unsigned char *random, size_t rlen, in tls_prf_generic() argument
6810 random, rlen, in tls_prf_generic()
6853 const unsigned char *random, size_t rlen, in tls_prf_generic() argument
6882 memcpy(tmp + md_len + nb, random, rlen); in tls_prf_generic()
6959 const unsigned char *random, size_t rlen, in tls_prf_sha256() argument
[all …]
H A Dssl_misc.h587 const unsigned char *random, size_t rlen,
/optee_os/lib/libmbedtls/mbedtls/
H A DSECURITY.md137 block cipher modes. For random generation, use HMAC\_DRBG instead of CTR\_DRBG.
H A DChangeLog509 used as random number generator function (f_rng) and context (p_rng) in
610 generating a new random after a HelloRetryRequest. Fixes #8669.
1365 first algorithm would not get sent and an entry consisting of two random
1552 * Fixed swap of client and server random bytes when exporting them alongside
1959 * For all functions that take a random number generator (RNG) as a
2125 * The new function mbedtls_mpi_random() generates a random value in a
2344 now use an external random generator instead of the library's own
2349 random generator with mbedtls_xxx functions. See the documentation of
2362 In such cases, a random nonce was necessary to achieve the advertised
2485 * A failure of the random generator was ignored in mbedtls_mpi_fill_random(),
[all …]
H A DREADME.md302 Mbed TLS supports drivers for cryptographic accelerators, secure elements and random generators. Th…
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dssl.h5785 const unsigned char *random, size_t rlen,