blob: bb045b3f3d850005b774d8e3a7d91bc0bf1dbd26 [file]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
zx_library("crypto") {
kernel = true
sources = [
"global_prng.cc",
"global_prng_unittest.cc",
"prng.cc",
"prng_unittest.cc",
]
deps = [
"$zx/kernel/lib/cmdline",
"$zx/kernel/lib/fbl",
"$zx/kernel/lib/unittest",
"$zx/system/ulib/explicit-memory",
"$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",
]
}