gchq/CyberChef

Bug report: ECC keys from "Generate PGP Key Pair" operation are invalid

已關閉

#2,267 建立於 2026年3月21日

 (0 則留言) (0 個反應) (1 位負責人)JavaScript (3,944 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (34,843 顆星)
PR 合併指標
 (平均合併 57天 13小時) (30 天內合併 62 個 PR)

描述

Describe the bug ECC keys generated by the Generate PGP Key Pair operation are invalid because algorithm and curve type have not been set.

This results in PGP Encrypt operations using such a key failing with an obscure internal kbpgp message as per #1440, #1923.

To Reproduce See #1440 for example

Expected behaviour Key should have subkeys for signing/certification and encryption. See https://github.com/zapu/kbpgp/blob/4f61781c93798c0527f250332f50c47b73e878ca/test/files/cv25519.iced#L239-L249 for a reference example.

Additional context Long term it would probably be better to replace the kbpgp library with a more frequently updated/modern library such as openpgp.js

貢獻者指南