Skip to content

Commit b18e227

Browse files
Support new randomness generation in AWS-LC (#708)
aws/aws-lc#2220 introduces a new method to import Jitter Entropy and previous PRs added Jitter Entropy for all build types. This didn't quite work with aws-lc-rs build that only expected Jitter Entropy for some select FIPS builds.
1 parent ad169b3 commit b18e227

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

aws-lc-fips-sys/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ include = [
3535
"/aws-lc/third_party/fiat/**/*.h",
3636
"/aws-lc/third_party/s2n-bignum/**/*.S",
3737
"/aws-lc/third_party/s2n-bignum/**/*.h",
38-
"/aws-lc/third_party/jitterentropy/**",
38+
"/aws-lc/third_party/jitterentropy/**/*.c",
39+
"/aws-lc/third_party/jitterentropy/**/*.h",
3940
"/aws-lc/util/fipstools/**/CMakeLists.txt",
4041
"/aws-lc/util/fipstools/**/*.c",
4142
"/aws-lc/util/fipstools/**/*.cc",

aws-lc-sys/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ include = [
3232
"/aws-lc/third_party/fiat/**/*.h",
3333
"/aws-lc/third_party/s2n-bignum/**/*.S",
3434
"/aws-lc/third_party/s2n-bignum/**/*.h",
35+
"/aws-lc/third_party/jitterentropy/**/*.c",
36+
"/aws-lc/third_party/jitterentropy/**/*.h",
3537
"/aws-lc/util/fipstools/**/CMakeLists.txt",
3638
"/aws-lc/util/fipstools/**/*.c",
3739
"/CMakeLists.txt",

aws-lc-sys/builder/cc_builder.rs

+7
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,13 @@ impl CcBuilder {
217217
.join("third_party")
218218
.join("s2n-bignum")
219219
.join("include"),
220+
)
221+
.include(
222+
self.manifest_dir
223+
.join("aws-lc")
224+
.join("third_party")
225+
.join("jitterentropy")
226+
.join("jitterentropy-library"),
220227
);
221228
}
222229

scripts/build/collect_symbols.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if [[ ! -d "${AWS_LC_DIR}" ]]; then
5757
fi
5858

5959
function filter_symbols() {
60-
grep -E '^\w*$' | grep -v -E "^bignum_" | grep -v "curve25519_x25519" | grep -v "edwards25519_" | grep -v "p256_montj" | grep -v "p384_montj" | grep -v "p521_montj" | grep -v "p521_j"
60+
grep -E '^\w*$' | grep -v -E "^bignum_" | grep -v "curve25519_x25519" | grep -v "edwards25519_" | grep -v "p256_montj" | grep -v "p384_montj" | grep -v "p521_montj" | grep -v "p521_j" | grep -v "jent_"
6161
}
6262

6363
function filter_nm_symbols() {

scripts/generate/_collect_symbols_build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function cmake_build_options() {
2020
}
2121

2222
function filter_symbols() {
23-
grep -v "^_\?bignum_" | grep -v "_\?curve25519_x25519" | grep -v "_\?edwards25519_" | grep -v "_\?p256_montj" | grep -v "_\?p384_montj" | grep -v "_\?p521_montj" | grep -v "_\?p521_j"
23+
grep -v "^_\?bignum_" | grep -v "_\?curve25519_x25519" | grep -v "_\?edwards25519_" | grep -v "_\?p256_montj" | grep -v "_\?p384_montj" | grep -v "_\?p521_montj" | grep -v "_\?p521_j" | grep -v "_\?jent_"
2424
}
2525

2626
REPO_ROOT=$(git rev-parse --show-toplevel)

0 commit comments

Comments
 (0)