blob: a27f6f54604957aca0b25ec3027fc8b3707d96c7 [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
import("//build/zircon/migrated_targets.gni")
zx_library("crypto") {
kernel = true
sources = [
"global_prng.cc",
"global_prng_unittest.cc",
"prng.cc",
"prng_unittest.cc",
]
deps = [
"entropy",
"//zircon/kernel/lib/boot-options",
"//zircon/kernel/lib/cmdline",
"//zircon/kernel/lib/fbl",
"//zircon/kernel/lib/init",
"//zircon/kernel/lib/ktl",
"//zircon/kernel/lib/unittest",
"//zircon/system/ulib/explicit-memory",
"//zircon/system/ulib/zbitl",
"//zircon/third_party/ulib/boringssl",
]
public_deps = [
# <lib/crypto/prng.h> has #include <ktl/atomic.h>.
"//zircon/kernel/lib/ktl:headers",
# lib/crypto/prng.h has #include <openssl/sha.h>.
"//zircon/third_party/ulib/boringssl:headers",
# <lib/crypto/entropy/jitterentropy_collector.h> has #include <lib/jitterentropy/jitterentropy.h>.
"//zircon/third_party/lib/jitterentropy:headers",
]
}