Add RSA-PSS signature verification support (TLS 1.3 with RSA cert)#377
Open
EdouardMALOT wants to merge 1 commit intoeclipse-threadx:devfrom
Open
Add RSA-PSS signature verification support (TLS 1.3 with RSA cert)#377EdouardMALOT wants to merge 1 commit intoeclipse-threadx:devfrom
EdouardMALOT wants to merge 1 commit intoeclipse-threadx:devfrom
Conversation
Author
|
@eclipseefa recheck |
Contributor
|
Thank you for this contribution, @EdouardMALOT. We will review and provide feedback. |
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.
Summary
This PR adds RSA-PSS (Probabilistic Signature Scheme) signature verification support to NetX Duo, as defined in RFC 8017 §8.1.
RSA-PSS is required for TLS 1.3 compliance: RFC 8446 §4.2.3 mandates the use of RSA-PSS for all RSA-based signatures in TLS 1.3 handshakes.
Changes
crypto_libraries/inc/nx_crypto_const.h— addNX_CRYPTO_DIGITAL_SIGNATURE_RSAPSSconstant (0x00050004)crypto_libraries/inc/nx_crypto_rsa.h— declare_nx_crypto_rsa_pss_verify()crypto_libraries/src/nx_crypto_rsa.c— implement:_nx_crypto_rsa_pss_mgf1()— Mask Generation Function 1 (RFC 8017 §B.2.1)_nx_crypto_rsa_pss_verify()— PSS encoding verification (salt length == hash length, as required by RFC 8446 §4.2.3)nx_secure/src/nx_secure_tls_process_certificate_verify.c— handleNX_CRYPTO_DIGITAL_SIGNATURE_RSAPSSin CertificateVerify processingnx_secure/src/nx_secure_tls_send_clienthello_extensions.c— advertise RSA-PSS signature algorithms in ClientHello extensionsTest plan
rsa_pss_rsae_sha256,rsa_pss_rsae_sha384, andrsa_pss_rsae_sha512is correctly verifiedNX_CRYPTO_NOT_SUCCESSFUL