Skip to content

Conversation

@larabr
Copy link
Collaborator

@larabr larabr commented May 14, 2024

Previously, readKey and readPrivateKey would throw when given a block of keys as input.
With this change, the first parsable key is returned by both functions:
the behaviour is equivalent to calling readKeys (resp. readPrivateKeys) and taking the first array entry.

Also, readPrivateKeys now supports parsing key blocks with mix of private and public keys (previously, parsing a key block where a public key followed a private one would fail).

larabr added 2 commits May 14, 2024 13:21
…public keys

Previously, parsing a key block where a public key followed a private one would fail.
… key)

Previously, `readKey` and `readPrivateKey` would throw when given a block
of keys as input.
With this change, the first parsable key is returned by both functions:
the behaviour is equivalent to calling `readKeys` (resp. `readPrivateKeys`)
and taking the first array entry.
@larabr larabr merged commit 727c7ca into openpgpjs:v6 May 16, 2024
@larabr larabr mentioned this pull request May 16, 2024
Merged
20 tasks
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