-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4515 from tom-daubney-arm/remove_rsa_mode_params_2
Remove rsa mode params part 2
- Loading branch information
Showing
19 changed files
with
187 additions
and
524 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Removals | ||
* The RSA module no longer supports private-key operations with the public | ||
key and vice versa. | ||
API changes | ||
* Remove the mode parameter from RSA operation functions. Signature and | ||
decryption functions now always use the private key and verification and | ||
encryption use the public key. Verification functions also no longer have | ||
RNG parameters. | ||
* The RNG is now mandatory for all private-key RSA operations. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
Remove the mode parameter from RSA functions | ||
-------------------------------------------- | ||
|
||
This affects all users who use the RSA encryption, decryption, sign and | ||
verify APIs. | ||
|
||
The RSA module no longer supports private-key operations with the public key or | ||
vice versa. As a consequence, RSA operation functions no longer have a mode | ||
parameter. If you were calling RSA operations with the normal mode (public key | ||
for verification or encryption, private key for signature or decryption), remove | ||
the `MBEDTLS_MODE_PUBLIC` or `MBEDTLS_MODE_PRIVATE` argument. If you were calling | ||
RSA operations with the wrong mode, which rarely makes sense from a security | ||
perspective, this is no longer supported. | ||
|
||
Remove the RNG parameter from RSA verify functions | ||
-------------------------------------------------- | ||
|
||
RSA verification functions also no longer take random generator arguments (this | ||
was only needed when using a private key). This affects all applications using | ||
the RSA verify functions. | ||
|
||
RNG is now mandatory in all RSA private key operations | ||
------------------------------------------------------ | ||
|
||
The random generator is now mandatory for blinding in all RSA private-key | ||
operations (`mbedtls_rsa_private`, `mbedtls_rsa_xxx_sign`, | ||
`mbedtls_rsa_xxx_decrypt`) as well as for encryption | ||
(`mbedtls_rsa_xxx_encrypt`). This means that passing a null `f_rng` is no longer | ||
supported. |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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.