-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplicate P256Keypair::ECDSA_sign_hash code (#20078)
* Remove duplicate P256Keypair::ECDSA_sign_hash code - The ECDSA_sign_hash method is a near identical copy of of ECDSA_sign_msg, that takes a raw hash. - This is problematic since some platforms, like Android, cannot directly sign a pre-computed hash with OS-aided APIs, and overall this is not consistent with signature APIs that work on messages, and where a digest is an internal implementation detail. - Overall, the method adds little value and prevents easy transition to different signing algorithms over time if the hash assumption is kept Fixes #18430 This PR: - Removes the sign_hash API - Replaces its usage throughout the SDK - Updates all tests - Leaves the ECDSA_verify_hash_signature (since it's only used in one place, already in native code, and always against raw public keys) Testing done: - Cert tests still pass, including device attestation during commissioning - Unit tests still pass including updated unit tests * Restyled by clang-format * Remove missed removals * Apply review comments Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
Showing
28 changed files
with
120 additions
and
286 deletions.
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
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.