/freebsd-current/lib/libc/tests/gen/ |
H A D | getentropy_test.c | 42 /* getentropy(2) does not modify buf past the requested length */ 44 ret = getentropy(buf, 1); 54 ret = getentropy(NULL, 1); 64 ATF_REQUIRE_EQ(getentropy(buf, sizeof(buf)), -1); 66 ATF_REQUIRE_EQ(getentropy(buf, 257), -1); 70 ATF_REQUIRE_EQ(getentropy(buf, 256), 0); 71 ATF_REQUIRE_EQ(getentropy(buf, 128), 0); 72 ATF_REQUIRE_EQ(getentropy(buf, 0), 0);
|
/freebsd-current/contrib/unbound/compat/ |
H A D | getentropy_win.c | 19 * Emulation of getentropy(2) as documented at: 20 * http://man.openbsd.org/getentropy.2 30 int getentropy(void *buf, size_t len); 37 getentropy(void *buf, size_t len) function
|
H A D | getentropy_freebsd.c | 19 * Emulation of getentropy(2) as documented at: 20 * http://man.openbsd.org/getentropy.2 55 getentropy(void *buf, size_t len) function
|
H A D | getentropy_solaris.c | 72 int getentropy(void *buf, size_t len); 83 getentropy(void *buf, size_t len) function 312 HF(getentropy); /* an addr in this library */
|
H A D | getentropy_osx.c | 19 * Emulation of getentropy(2) as documented at: 20 * http://man.openbsd.org/getentropy.2 83 int getentropy(void *buf, size_t len); 89 getentropy(void *buf, size_t len) function 289 HF(getentropy); /* an addr in this library */
|
H A D | getentropy_linux.c | 19 * Emulation of getentropy(2) as documented at: 20 * http://man.openbsd.org/getentropy.2 88 int getentropy(void *buf, size_t len); 101 getentropy(void *buf, size_t len) function 389 HF(getentropy); /* an addr in this library */
|
H A D | arc4random.c | 92 /* fallback for getentropy in case libc returns failure */ 186 if (getentropy(rnd, sizeof rnd) == -1) {
|
/freebsd-current/tools/build/cross-build/include/linux/ |
H A D | unistd.h | 67 * getentropy() was added in glibc 2.25. Declare it for !glibc and older 72 getentropy(void *buf, size_t buflen) function
|
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | arc4random.c | 47 * Always use the getentropy implementation from bsd-getentropy.c, which 48 * will call a native getentropy if available then fall back as required. 49 * We use a different name so that OpenSSL cannot call the wrong getentropy. 52 #ifdef getentropy 53 # undef getentropy macro 55 #define getentropy(x, y) (_ssh_compat_getentropy((x), (y))) macro 116 if (getentropy(rnd, sizeof rnd) == -1)
|
H A D | bsd-getentropy.c | 58 if ((r = getentropy(s, len)) == 0)
|
H A D | Makefile.in | 74 bsd-getentropy.o \
|
/freebsd-current/lib/libc/gen/ |
H A D | getentropy.c | 108 getentropy(void *buf, size_t buflen) function
|
H A D | arc4random.c | 136 if (getentropy(rnd, sizeof rnd) == -1)
|
H A D | Makefile.inc | 72 getentropy.c \ 237 getentropy.3 \
|
/freebsd-current/usr.sbin/bhyve/ |
H A D | vmgenc.c | 68 error = getentropy(region, sizeof(struct uuid)); 70 err(4, "%s: getentropy", __func__);
|
/freebsd-current/contrib/unbound/util/ |
H A D | random.c | 161 if(getentropy(buf, sizeof(buf)) != -1) { 167 "getentropy failed: %s", strerror(errno));
|
/freebsd-current/contrib/wireguard-tools/ |
H A D | genkey.c | 44 if (!getentropy(out, len))
|
/freebsd-current/contrib/bearssl/src/rand/ |
H A D | sysrng.c | 144 * Seeder that uses getentropy() (backed by getrandom() on some systems, 154 if (getentropy(tmp, sizeof tmp) == 0) { 233 *name = "getentropy";
|
/freebsd-current/contrib/llvm-project/libcxx/src/ |
H A D | random.cpp | 53 int err = getentropy(&r, n); 55 __throw_system_error(errno, "random_device getentropy failed");
|
/freebsd-current/crypto/openssl/providers/implementations/rands/seeding/ |
H A D | rand_unix.c | 347 * Do runtime detection to find getentropy(). 356 * Note: Sometimes getentropy() can be provided but not implemented 361 extern int getentropy(void *buffer, size_t length) __attribute__((weak)); 363 if (getentropy != NULL) { 364 if (getentropy(buf, buflen) == 0) 386 p_getentropy.p = DSO_global_lookup("getentropy"); 452 * readable. However, such kernels support the getentropy(2)
|
/freebsd-current/include/ |
H A D | unistd.h | 512 int getentropy(void *, size_t);
|
/freebsd-current/lib/libunbound/ |
H A D | config.h | 298 /* Define to 1 if you have the `getentropy' function. */ 1464 int getentropy(void* buf, size_t len);
|
/freebsd-current/usr.bin/sort/ |
H A D | sort.c | 921 if (getentropy(randseed, sizeof(randseed)) < 0) 922 err(EX_SOFTWARE, "getentropy"); 967 if (getentropy(randseed, sizeof(randseed)) < 0) 968 err(EX_SOFTWARE, "getentropy");
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux.cpp | 2368 uptr rnd = getentropy(buffer, length);
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_custom.cpp | 1094 SANITIZER_WEAK_ATTRIBUTE int getentropy(void *buffer, size_t length); 1100 int ret = getentropy(buffer, length);
|