Home
last modified time | relevance | path

Searched refs:SHA1BYTES (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/common/crypto/rng/
H A Dfips_random.c117 static const char zero[SHA1BLOCKBYTES - SHA1BYTES] = {0}; in fips_random_inner()
129 SHA1Update(&sha1_context, (unsigned char *)XVAL, SHA1BYTES); in fips_random_inner()
139 SHA1BLOCKBYTES - SHA1BYTES); in fips_random_inner()
154 xvalconv(x_j, sha1_context.state, SHA1BYTES/4); in fips_random_inner()
H A Dfips_random.h39 #define SHA1BYTES (BYTES_IN_WORD * SHA1WORDS) macro
/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_provider.c78 for (i = 0; i < nbytes; i += SHA1BYTES) { in fips_random()
144 bcopy(tempout, &out[i], min(nbytes - i, SHA1BYTES)); in fips_random()
152 bzero(tempout, SHA1BYTES); in fips_random()
176 rv = n2rng_getentropy(n2rng, (void *)frsp->XKEY, ROUNDUP(SHA1BYTES, 8)); in n2rng_fips_random_init()