-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused
enums.symmetric.plaintext
This special cipher value can be relevant for unencrypted private keys: https://www.ietf.org/archive/id/draft-ietf-openpgp-crypto-refresh-10.html#section-12.2.1 . However, it is no longer used internally, and on the contrary it could cause confusion on SKESK decryption, where "random" cipher algos are returned in case of wrong password. This change also fixes a flaky test on password-based decryption, caused by the PKESK v6 changes which add support for `null` cipher algos. The code did not distinguish between a `null` and a `0` (plaintext) algo identifier, and would break when the latter was returned on SKESK decryption.
- Loading branch information
Showing
3 changed files
with
72 additions
and
4 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