Skip to content

Conversation

@lubux
Copy link
Member

@lubux lubux commented Feb 3, 2025

PublicKey.KeyIdString() previously did not compute the key ID correctly for v5 and v6 keys.
This PR fixes the issue by directly using the stored key ID from the struct.

PublicKey.KeyIdString previously did not compute the key ID correctly for v5 and v6 keys.
This commit fixes the issue by directly using the stored key ID from the struct.
@lubux lubux linked an issue Feb 3, 2025 that may be closed by this pull request
@lubux lubux requested a review from twiss February 3, 2025 14:36
@lubux lubux merged commit 30af2e4 into main Feb 12, 2025
11 checks passed
@lubux lubux deleted the fix/v6-key-id-pub branch February 12, 2025 10:17
DennisRasey pushed a commit to DennisRasey/forgejo that referenced this pull request Feb 28, 2025
…068)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/ProtonMail/go-crypto](https://github.com/ProtonMail/go-crypto) | require | patch | `v1.1.5` -> `v1.1.6` |

---

### Release Notes

<details>
<summary>ProtonMail/go-crypto (github.com/ProtonMail/go-crypto)</summary>

### [`v1.1.6`](https://github.com/ProtonMail/go-crypto/releases/tag/v1.1.6)

[Compare Source](ProtonMail/go-crypto@v1.1.5...v1.1.6)

#### What's Changed

-   Fix `PublicKey.KeyIdString` to return a valid key id by [@&#8203;lubux](https://github.com/lubux) in ProtonMail/go-crypto#269
-   Allow Key Flags override [@&#8203;davrux](https://github.com/davrux) in ProtonMail/go-crypto#272
-   Only check that message signatures are newer than the key by [@&#8203;twiss](https://github.com/twiss) in ProtonMail/go-crypto#275
-   openpgp/clearsign: just use rand.Reader in tests by [@&#8203;mdosch](https://github.com/mdosch) in ProtonMail/go-crypto#276
-   Make Issuer Key ID signature subpacket non-critical by [@&#8203;caarlos0](https://github.com/caarlos0) in ProtonMail/go-crypto#266
-   v2 API: Improve error messages for encryption key selection by [@&#8203;lubux](https://github.com/lubux) in ProtonMail/go-crypto#271

**Full Changelog**: ProtonMail/go-crypto@v1.1.5...v1.1.6

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzguMSIsInVwZGF0ZWRJblZlciI6IjM5LjE3OC4xIiwidGFyZ2V0QnJhbmNoIjoiZm9yZ2VqbyIsImxhYmVscyI6WyJkZXBlbmRlbmN5LXVwZ3JhZGUiLCJ0ZXN0L25vdC1uZWVkZWQiXX0=-->

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7068
Reviewed-by: Gusted <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
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.

KeyID calculation appears to assume v4 fingerprints

3 participants