mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-07-05 12:32:30 +00:00

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.