Skip to content

Conversation

torben-hansen
Copy link
Contributor

@torben-hansen torben-hansen commented Oct 8, 2025

Issues:

D315146529

Description of changes:

Adds a build-time option DISABLE_USAGE_OF_CPU_JITTER_ENTROPY to opt-out of CPU Jitter Entropy. That is, with this option CPU Jitter Entropy will never be configured, the tree-DRBG will not be used. Furthermore, CPU Jitter Entropy will not even be included in any compilation units.

When using DISABLE_USAGE_OF_CPU_JITTER_ENTROPY we can no longer guarantee two entropy sources because only the Operating System type will be required to be available. rdrand and rndr will be used if supported in any given run-time, but it's not a guarantee.

Testing:

New stanza in build script executes a complete build and test with the option.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 30.76923% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.93%. Comparing base (1f7577b) to head (d5b0d84).

Files with missing lines Patch % Lines
crypto/fipsmodule/rand/entropy/entropy_sources.c 38.09% 13 Missing ⚠️
...pto/fipsmodule/rand/entropy/entropy_source_test.cc 0.00% 2 Missing ⚠️
crypto/fipsmodule/self_check/fips.c 0.00% 2 Missing ⚠️
crypto/crypto_test.cc 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2733      +/-   ##
==========================================
- Coverage   78.93%   78.93%   -0.01%     
==========================================
  Files         675      675              
  Lines      115273   115283      +10     
  Branches    16210    16213       +3     
==========================================
+ Hits        90994    91001       +7     
- Misses      23489    23493       +4     
+ Partials      790      789       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@torben-hansen torben-hansen force-pushed the opt_out_cpu_jitter_entropy branch from a6b4d30 to fa26eec Compare October 9, 2025 13:49
@torben-hansen torben-hansen marked this pull request as ready for review October 9, 2025 14:15
@torben-hansen torben-hansen requested a review from a team as a code owner October 9, 2025 14:15
justsmth
justsmth previously approved these changes Oct 10, 2025
@torben-hansen torben-hansen merged commit e5a89cb into aws:main Oct 13, 2025
440 of 447 checks passed
@justsmth justsmth mentioned this pull request Oct 13, 2025
justsmth added a commit that referenced this pull request Oct 13, 2025
### Description of changes: 
Prepare v1.62.0 release

#### What's Changed
* nginx now supports AWS-LC by @samuel40791765 in
#2714
* Fix tests that assume X25519 will be negotiated by @alexw91 in
#2682
* Fixing a bug in ML-DSA poly_uniform function by @dkostic in
#2721
* Migrate integration omnibus by @skmcgrail in
#2715
* Delete util/bot directory by @justsmth in
#2723
* Don't ignore CMAKE_C_FLAGS w/ MSVC by @justsmth in
#2722
* Bump urllib3 from 2.2.3 to 2.5.0 in /tests/ci by @dependabot[bot] in
#2551
* Type fix in mldsa by @manastasova in
#2308
* Centralize password handling tool-openssl by @kingstjo in
#2555
* crypto/pem: replace strncmp with CRYPTO_memcmp to fix -Wstring-compare
error by @R3hankhan123 in #2724
* Implement dgst CLI command by @nhatnghiho in
#2638
* Add ASN.1 decoding for ML-KEM private keys as seeds by @jakemas in
#2707
* Implement genrsa command by @kingstjo in
#2535
* Move udiv and sencond tweak calculations to when needed by @nebeid in
#2726
* Add null check on RSA key checks by @samuel40791765 in
#2727
* Implement workaround for FORTIFY_SOURCE warning with jitterentropy by
@skmcgrail in #2728
* Implement coverity suggestions by @skmcgrail in
#2730
* Add minimal EC CLI tool implementation by @kingstjo in
#2640
* Adding pkeyutl tool to the CLI by @smittals2 in
#2575
* Add CI dimensions for legacy AVX512 flags by @smittals2 in
#2732
* Fix Libwebsockets CI by @smittals2 in
#2737
* Add option ENABLE_SOURCE_MODIFICATION by @justsmth in
#2739
* Simple script to build/run tests by @justsmth in
#2736
* Add build-time option to opt-out of CPU Jitter Entropy by
@torben-hansen in #2733


By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants