Repository navigation
Add tests for RSASSA-PSS with SHA-3 digest and MGF1 - #3377
Merged
Merged
Conversation
WillChilds-Klein
had a problem deploying
to
auto-approve
July 27, 2026 14:43 — with
GitHub Actions
Error
WillChilds-Klein
had a problem deploying
to
auto-approve
July 27, 2026 14:43 — with
GitHub Actions
Error
WillChilds-Klein
had a problem deploying
to
auto-approve
July 27, 2026 14:43 — with
GitHub Actions
Error
WillChilds-Klein
had a problem deploying
to
auto-approve
July 27, 2026 14:43 — with
GitHub Actions
Error
WillChilds-Klein
had a problem deploying
to
auto-approve
July 27, 2026 14:43 — with
GitHub Actions
Error
WillChilds-Klein
had a problem deploying
to
auto-approve
July 27, 2026 14:43 — with
GitHub Actions
Error
WillChilds-Klein
had a problem deploying
to
auto-approve
July 27, 2026 14:43 — with
GitHub Actions
Error
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 14:46 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 14:47 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 14:47 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 14:47 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 14:47 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 14:47 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 14:47 — with
GitHub Actions
Inactive
justsmth
previously approved these changes
Jul 27, 2026
justsmth
left a comment
Contributor
There was a problem hiding this comment.
PR description needs to be updated per the changes in the second commit.
Contributor
|
๐ Security Review โ View Report Please review before merging. |
Codecov Reportโ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3377 +/- ##
==========================================
+ Coverage 78.38% 78.39% +0.01%
==========================================
Files 695 695
Lines 124195 124224 +29
Branches 17266 17266
==========================================
+ Hits 97352 97390 +38
+ Misses 25917 25908 -9
Partials 926 926 โ View full report in Codecov by Harness. ๐ New features to boost your workflow:
|
WillChilds-Klein
enabled auto-merge (squash)
July 27, 2026 16:39
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 16:55 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 16:55 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 16:55 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 16:55 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 16:55 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 16:55 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 16:55 — with
GitHub Actions
Inactive
justsmth
approved these changes
Jul 27, 2026
RSASSA-PSS already supports SHA-3 for both the message digest and the MGF1 hash: the padding, sign, and verify paths drive the digest entirely through the abstract EVP_MD interface with no digest allowlist. Add tests proving this at two layers. - crypto/rsa_extra/rsa_test.cc: RSATest.PSSWithSHA3 exercises the low-level padding functions (RSA_padding_add_PKCS1_PSS_mgf1 / RSA_verify_PKCS1_PSS_mgf1) and the sign/verify functions (RSA_sign_pss_mgf1 / RSA_verify_pss_mgf1) with SHA3-256/384/512, including a case where the message digest and MGF1 digest differ. - crypto/evp_extra/evp_tests.txt: file-driven vectors covering the EVP layer (EVP_PKEY_sign/verify with EVP_PKEY_CTX_set_rsa_mgf1_md), round-tripped via CheckVerify.
Broaden the RSA-PSS digest test to also cover SHA-224/256/384/512 (in addition to the SHA-3 variants), including a mismatched SHA-256/SHA-512 message-digest/MGF1-digest case. Rename it to PSSWithVariousDigests to reflect that it spans multiple digest families rather than just SHA-3.
The pre_push_checker CI job regenerates generated-src and compares it against the committed copy. Adding RSA-PSS SHA-3 vectors to crypto/evp_extra/evp_tests.txt changed the embedded test data in generated-src/crypto_test_data.cc.tar.bz2, so regenerate it to match.
WillChilds-Klein
force-pushed
the
rsa-pss-sha3-tests
branch
from
July 27, 2026 17:26
a1ddb6a to
d50490d
Compare
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 17:26 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 17:27 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 17:27 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 17:27 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 17:27 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 17:27 — with
GitHub Actions
Inactive
WillChilds-Klein
temporarily deployed
to
auto-approve
July 27, 2026 17:27 — with
GitHub Actions
Inactive
jakemas
approved these changes
Jul 27, 2026
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
aws-lc 5.5.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed * Restore ADX/AVX2 code paths under OPENSSL_SMALL via new MY_ASSEMBLER_IS_TOO_OLD_FOR_ADX_AVX2 flag by @justsmth in aws/aws-lc#3368 * Include <openssl/cipher.h> from <openssl/hmac.h> for OpenSSL compat by @justsmth in aws/aws-lc#3371 * ci: harden security-review.yml against script injection by @nebeid in aws/aws-lc#3365 * Fix flaky s_client cipher tests by using better ciphers by @justsmth in aws/aws-lc#3373 * chore: simplify the api docs workflow by @dougch in aws/aws-lc#3186 * Add tests for RSASSA-PSS with SHA-3 digest and MGF1 by @WillChilds-Klein in aws/aws-lc#3377 * Link header documentation from README by @WillChilds-Klein in aws/aws-lc#3378 * Rename autofix reasoning role to AwsLcGitHubActionsBedrockRole by @tianyiy-tim in aws/aws-lc#3376 * ci: pin openssh required job by @dougch in aws/aws-lc#3387 * delocate: Drop redundant `-dI` flag by @hanno-becker in aws/aws-lc#3384 * Add Neoverse-V3 (Graviton5) detection and dispatch by @nebeid in aws/aws-lc#3374 * Bump ring from 0.17.8 to 0.17.14 in /tests/ci/lambda by @dependabot[bot] in aws/aws-lc#3375 * Fix docker image dependencies and update octocrab initialization by @prasden in aws/aws-lc#3388 * Update FIPS.md by @justsmth in aws/aws-lc#3382 * Bump urllib3 from 2.6.3 to 2.7.0 in /tests/ci by @dependabot[bot] in aws/aws-lc#3372 * Add MinGW shared-library Windows CI coverage by @justsmth in aws/aws-lc#3398 * Update concurrency in `security-review` by @nhatnghiho in aws/aws-lc#3403 * Enable linker garbage collection for non-FIPS static builds by @justsmth in aws/aws-lc#3397 * Prepare 5.5.0 by @justsmth in aws/aws-lc#3401 ## New Contributors * @tianyiy-tim made their first contribution in aws/aws-lc#3376 **Full Changelog**: https://github.com/aws/aws-lc/compare/v5.4.0...v5.5.0</pre> <p>View the full release notes at <a href="https://github.com/aws/aws-lc/releases/tag/v5.5.0">https://github.com/aws/aws-lc/releases/tag/v5.5.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!15934
This branch was previously deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Adds test coverage proving RSASSA-PSS supports SHA-3 and all SHA-2 variants as both the message digest and the MGF1 hash. No library code changes -- this capability already works because the PSS padding, sign, and verify paths drive the digest through the abstract
EVP_MDinterface with no digest allowlist.Testing
crypto/rsa_extra/rsa_test.cc-- new test covers the low-level padding functions (RSA_padding_add_PKCS1_PSS_mgf1/RSA_verify_PKCS1_PSS_mgf1) and sign/verify (RSA_sign_pss_mgf1/RSA_verify_pss_mgf1) with SHA3-256/384/512, plus a mismatched message-digest/MGF1-digest case (SHA3-256 hash with SHA3-512 mask) and a negative control.crypto/evp_extra/evp_tests.txt-- file-driven vectors covering the EVP layer (EVP_PKEY_sign/verifywithEVP_PKEY_CTX_set_rsa_mgf1_md), round-tripped viaCheckVerify.Note
The one place SHA-3 is not accepted for PSS is the ASN.1 parameter allowlist in
crypto/rsa_extra/rsassa_pss_asn1.c(SHA1/224/256/384/512 only), which is exercised only for restrictedEVP_PKEY_RSA_PSSkeys. These tests deliberately use plain RSA keys and the direct APIs, which are unaffected.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.