blob: 271542ecdb3933b49c7e11cee58ee80a58bf2758 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
library("crypto") {
kernel = true
sources = [
"global_prng.cpp",
"global_prng_unittest.cpp",
"prng.cpp",
"prng_unittest.cpp",
]
deps = [
"$zx/kernel/lib/fbl",
"$zx/kernel/lib/unittest",
"$zx/system/ulib/explicit-memory",
"$zx/third_party/ulib/cryptolib",
"$zx/third_party/ulib/uboringssl",
"entropy",
]
public_deps = [
# lib/crypto/prng.h has #include <openssl/sha.h>.
"$zx/third_party/ulib/uboringssl:headers",
# <lib/crypto/entropy/jitterentropy_collector.h> has #include <lib/jitterentropy/jitterentropy.h>.
"$zx/third_party/lib/jitterentropy:headers",
]
}