c80e416353
This change adds the OS-specific routines to get random bytes when using BoringSSL on Fuchsia. Fuchsia uses the Magenta kernel, which provides random bytes via a syscall rather than via a file or library function. Change-Id: I32f858246425309d643d142214c7b8de0c62250a Reviewed-on: https://boringssl-review.googlesource.com/13140 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
26 lines
315 B
CMake
26 lines
315 B
CMake
include_directories(../../include)
|
|
|
|
if (${ARCH} STREQUAL "x86_64")
|
|
set(
|
|
RAND_ARCH_SOURCES
|
|
|
|
rdrand-x86_64.${ASM_EXT}
|
|
)
|
|
endif()
|
|
|
|
add_library(
|
|
rand
|
|
|
|
OBJECT
|
|
|
|
deterministic.c
|
|
fuchsia.c
|
|
rand.c
|
|
urandom.c
|
|
windows.c
|
|
|
|
${RAND_ARCH_SOURCES}
|
|
)
|
|
|
|
perlasm(rdrand-x86_64.${ASM_EXT} asm/rdrand-x86_64.pl)
|