Skip to content

Conversation

@larabr
Copy link
Collaborator

@larabr larabr commented Aug 23, 2024

To avoid returning dummy key packets, and improving error reporting. This new behavior is also better aligned with that of Key.getSigningKey().

This is a breaking change for apps that call getDecryptionKeys() directly. The related error messages returned by openpgp.decrypt have also changed, becoming more specific.

This change is also made in preparation of supporting private keys with public key packets (#1787 , to be released in the next minor version, hence we want to avoid breaking changes there).

To avoid returning dummy key packets, and improving error reporting.
This new behavior is also better aligned with that of `Key.getSigningKey()`.

This is a breaking change for apps that call `getDecryptionKeys()` directly.
The related error messages returned by `openpgp.decrypt` have also changed,
becoming more specific.

This change is also made in preparation of supporting private keys with
public key packets (to be released in the next minor version, hence we
want to avoid breaking changes there).
@larabr larabr force-pushed the v6-throw-no-get-decryption-keys branch from ab32be4 to b0873eb Compare August 23, 2024 16:18
@larabr larabr requested a review from twiss August 23, 2024 16:28
@larabr larabr merged commit 2f18548 into openpgpjs:v6 Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants