Home
last modified time | relevance | path

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

/titanic_50/usr/src/uts/common/io/
H A Drandom.c233 uint8_t random_bytes[2 * HASHSIZE]; in rnd_read() local
238 len = min(sizeof (random_bytes), uiop->uio_resid); in rnd_read()
241 error = kcf_rnd_get_bytes(random_bytes, len, in rnd_read()
245 error = kcf_rnd_get_pseudo_bytes(random_bytes, len); in rnd_read()
258 error = uiomove(random_bytes, len, UIO_READ, uiop); in rnd_read()
/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpm_specific.c604 BYTE *random_bytes = NULL; in token_rng() local
612 if ((rc = Tspi_TPM_GetRandom(hTPM, bytes, &random_bytes))) { in token_rng()
618 (void) memcpy(output, random_bytes, bytes); in token_rng()
619 Tspi_Context_FreeMemory(hContext, random_bytes); in token_rng()