Searched refs:getentropy (Results 1 - 25 of 27) sorted by relevance

12

/freebsd-current/lib/libc/tests/gen/
H A Dgetentropy_test.c42 /* 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 Dgetentropy_win.c19 * 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 Dgetentropy_freebsd.c19 * Emulation of getentropy(2) as documented at:
20 * http://man.openbsd.org/getentropy.2
55 getentropy(void *buf, size_t len) function
H A Dgetentropy_solaris.c72 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 Dgetentropy_osx.c19 * 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 Dgetentropy_linux.c19 * 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 Darc4random.c92 /* 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 Dunistd.h67 * 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 Darc4random.c47 * 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 Dbsd-getentropy.c58 if ((r = getentropy(s, len)) == 0)
H A DMakefile.in74 bsd-getentropy.o \
/freebsd-current/lib/libc/gen/
H A Dgetentropy.c108 getentropy(void *buf, size_t buflen) function
H A Darc4random.c136 if (getentropy(rnd, sizeof rnd) == -1)
H A DMakefile.inc72 getentropy.c \
237 getentropy.3 \
/freebsd-current/usr.sbin/bhyve/
H A Dvmgenc.c68 error = getentropy(region, sizeof(struct uuid));
70 err(4, "%s: getentropy", __func__);
/freebsd-current/contrib/unbound/util/
H A Drandom.c161 if(getentropy(buf, sizeof(buf)) != -1) {
167 "getentropy failed: %s", strerror(errno));
/freebsd-current/contrib/wireguard-tools/
H A Dgenkey.c44 if (!getentropy(out, len))
/freebsd-current/contrib/bearssl/src/rand/
H A Dsysrng.c144 * 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 Drandom.cpp53 int err = getentropy(&r, n);
55 __throw_system_error(errno, "random_device getentropy failed");
/freebsd-current/crypto/openssl/providers/implementations/rands/seeding/
H A Drand_unix.c347 * 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 Dunistd.h512 int getentropy(void *, size_t);
/freebsd-current/lib/libunbound/
H A Dconfig.h298 /* Define to 1 if you have the `getentropy' function. */
1464 int getentropy(void* buf, size_t len);
/freebsd-current/usr.bin/sort/
H A Dsort.c921 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 Dsanitizer_linux.cpp2368 uptr rnd = getentropy(buffer, length);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_custom.cpp1094 SANITIZER_WEAK_ATTRIBUTE int getentropy(void *buffer, size_t length);
1100 int ret = getentropy(buffer, length);

Completed in 333 milliseconds

12