Lines Matching refs:buf
96 static int getrandom_wrapper( void *buf, size_t buflen, unsigned int flags ) in getrandom_wrapper() argument
101 memset( buf, 0, buflen ); in getrandom_wrapper()
104 return( syscall( SYS_getrandom, buf, buflen, flags ) ); in getrandom_wrapper()
116 static int getrandom_wrapper( void *buf, size_t buflen, unsigned int flags ) in getrandom_wrapper() argument
118 return getrandom( buf, buflen, flags ); in getrandom_wrapper()
138 static int sysctl_arnd_wrapper( unsigned char *buf, size_t buflen ) in sysctl_arnd_wrapper() argument
149 if( sysctl(name, 2, buf, &len, NULL, 0) == -1 ) in sysctl_arnd_wrapper()
152 buf += len; in sysctl_arnd_wrapper()
218 unsigned char buf[MBEDTLS_ENTROPY_BLOCK_SIZE]; in mbedtls_nv_seed_poll() local
222 memset( buf, 0, MBEDTLS_ENTROPY_BLOCK_SIZE ); in mbedtls_nv_seed_poll()
224 if( mbedtls_nv_seed_read( buf, MBEDTLS_ENTROPY_BLOCK_SIZE ) < 0 ) in mbedtls_nv_seed_poll()
230 memcpy( output, buf, use_len ); in mbedtls_nv_seed_poll()