-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SHA3 and SHAKE - New API Design #2098
Open
manastasova
wants to merge
73
commits into
aws:main
Choose a base branch
from
manastasova:sha3_absorb_squeeze
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+194
−97
Open
Changes from 26 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
c6ed451
Introduce SHA3/SHAKE layered API design; Only SHA3/SHAKE files updates
manastasova a05d255
Add changes to ML-KEM based on SHA3/SHAKE new API Design
manastasova 50cf7fa
Add changes to ML-DSA based on SHA3/SHAKE new API Design
manastasova 4b0b92e
Update build files in generated-src
manastasova eb992ea
Update service indicator in SHA3_Final
manastasova d40fbec
Initialize |ctx->padded| to 0 for SHAKE inside SHAKE_Init
manastasova adb910d
Update service indicator at the end of SHAKE_Finalize; The XOF functi…
manastasova 02b8085
Fix conflicts with MLDSA parameters renaming
manastasova e61be0d
Merge branch 'main' into sha3_absorb_squeeze
manastasova 3008821
Merge branch 'aws:main' into sha3_absorb_squeeze
manastasova 2a1622f
Update SHAKE single-shot and streaming APIs
manastasova c5d0afd
Update incremental block-wise SHAKE squeezes in MLKEM
manastasova b6a5590
Update incremental block-wise SHAKE squeezes in MLDSA
manastasova 7ccaeba
Replace |keccak_st->padded| flag with |keccak_st->state| flag
manastasova 7edb6c7
Update MLKEM and MLDSA
manastasova 7386c1b
Update Keccak state flag in SHA3 functions
manastasova e424771
Address code review comments
manastasova 6597af1
Add export macro to functions in the tests
manastasova 7766425
Merge branch 'aws:main' into sha3_absorb_squeeze
manastasova ff3cbd8
Rename Absorb and Squeeze functions to Keccak1600_ layer specific
manastasova 680dd43
Update build files in generated-src
manastasova 872d368
Apply suggestions from code review
manastasova 5780ee5
Move all common |ctx->state| flag checks in the FIPS202 layer
manastasova 3f43dde
Merge branch 'sha3_absorb_squeeze' of github.com:manastasova/aws-lc i…
manastasova 07bac7c
Update MLKEM and MLDSA
manastasova 2973e4a
Merge branch 'main' of github.com:aws/aws-lc into sha3_absorb_squeeze
manastasova 86fa4b0
Remove SHAKE_Squeeze service indicator update
manastasova 36ab448
Merge branch 'main' of github.com:aws/aws-lc into sha3_absorb_squeeze
manastasova b2228b6
Bring back exports
manastasova 14da500
Merge branch 'main' of github.com:aws/aws-lc into sha3_only_rename
manastasova 97b02c6
Only add shanges to Init functions
manastasova 95c7e26
add new line at the end of file
manastasova 077ef78
Merge branch 'main' into sha3_absorb_squeeze
manastasova b4ce7b2
Merge branch 'main' into sha3_only_rename
manastasova 5b18483
Merge branch 'main' into sha3_only_rename
manastasova d3bba6b
Merge branch 'main' into sha3_only_rename
manastasova f48fb78
merge with aws-lc main and sha3/shake_only_Init PR changes
manastasova 6ce3a3b
Allow TLS PSK without server certificate (#2083)
WillChilds-Klein 72373f3
Align guard macros for OPENSSL_cpuid_setup (#2111)
justsmth 820394a
Init variable to avoid "may be used uninitialized" warning (#2114)
manastasova 26544da
SCRUTINICE fixes (#2103)
smittals2 0239af3
Remove jent_read_entropy_safe usage from AWS-LC (main) (#2110)
smittals2 2ddcd83
CDK: Add scrutinice permissions (#2118)
justsmth 94bc599
Address Scrutinice findings (#2121)
justsmth 6933d45
Finalize ML-DSA asn.1 module (#2117)
jakemas 9462df8
Align BN_bn2hex behavior with OpenSSL (#2122)
samuel40791765 9d433cb
Start making asserts constant-time too
davidben 705f36c
Fix EVP_PKEY_CTX_dup with EC generation
davidben a03e160
Remove unused flags argument from trust handlers
botovq 507ff49
Document that null STACK_OF(T) can be used with several functions
davidben 863387d
Upstream rebase
manastasova 5a4dc9c
Add a PrivacyInfo plist file
ebfb590
Switch EVP_CIPHERs to C99 initializers
davidben b80f99e
Document that our Unicode APIs reject noncharacters
davidben 3001ac9
Rewrite RAND_enable_fork_unsafe_buffering documentation
davidben 8d6b7f5
Disable `-Wcast-function-type-strict` for `BORINGSSL_DEFINE_STACK_OF_…
brianpl 64f25eb
Increase DTLS window size from 64 to 256
nharper 80260d9
Avoid strdup in crypto/err/err.c
davidben 2d90347
Add more debug logging to channelID test failures (#2130)
andrewhop 55742fa
Compress crypto_test_data.cc (#2123)
justsmth c91bd6a
Prepare AWS-LC v1.43.0 (#2133)
justsmth a66a1a5
Minor symbols to work with Ruby's mainline (#2132)
samuel40791765 7fb93e8
ACVP test harness for ML-DSA (#2127)
jakemas 95a9e8a
Remove remaining support for Trusty and Fuchsia operating systems (#2…
torben-hansen 0b9ef21
Avoid mixing SSE and AVX in XTS-mode AVX512 implementation (#2140)
torben-hansen df51857
Support for ML-DSA public key generation from private key (#2142)
jakemas 9d3b72b
Ed25519ph and Ed25519ctx Support (#2120)
skmcgrail 3b18668
Check for MIPSEB in target.h (#2143)
justsmth 3cdcaa3
Optimize x86/aarch64 MD5 implementation (#2137)
olivergillespie cb6f877
Support keypair calculation for PQDSA PKEY (#2145)
jakemas 96f8169
Upstream merge
manastasova 7848023
fix
manastasova 1fdb30e
Update comments and exports
manastasova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're removing a parameter from the public API. Will there be any impact for downstream users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this function is currently public. To verify, I checked our Rust bindings to see whether it was listed. I don't see it here: https://docs.rs/aws-lc-sys/latest/aws_lc_sys/#functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my understanding, only the functions defined in the include/openssl are consider external APIs.
These APIs should be internal, however, they are exported so that they can be used in our tests. However, I am not sure if there may be some customers that use these internal APIs as well.