Composite PQC PGP (IETF OpenPGP-PQC) in the web app#1
Open
0c-coder wants to merge 3 commits into
Open
Conversation
Upgrade the bundled openpgp.js to the composite PQC build (v6 + draft-ietf-openpgp-pqc)
and add onlykey-openpgp-pqc.js delegation glue for keys loaded on the device
(firmware feature/pqc-pgp-slots, KEYTYPE_PQC_PGP=7):
- sign pqc_mldsa_ed25519 (107): signer hook -> {eccSignature(64), mldsaSignature(3309)}
- decrypt pqc_mlkem_x25519 (105): ecdh (X25519) + mlkemDecaps hooks; openpgp.js does
the KMAC256(OpenPGPCompositeKDFv1) combine + AES key-unwrap.
Wire framing matches okpqc.cpp (OKSIGN [selector]+digest, OKDECRYPT by size).
IETF format (not GnuPG LibrePGP). Untested end-to-end.
…Key blob node gen-composite-key.js openpgp.js "Name <email>" -> composite-pubkey.asc + composite-blob.hex (load via: onlykey-cli setpqc RSA1 composite-blob.hex). Extracts the four seeds (Ed25519, ML-DSA, X25519, ML-KEM) from a generated composite key into the fixed 160-byte slot layout.
Add KB_ONLYKEY.pqc_sign_ecc / pqc_sign_pqc / pqc_x25519 / pqc_mlkem device callbacks over u2fSignBuffer (OKSIGN [selector]+digest; OKDECRYPT by size) and KB_ONLYKEY.registerPQCHooks(openpgp, slot) to bind them to onlykey-openpgp-pqc.js. slotid() honors pqcMode -> RSA slot. RSA-slot addressing + PIN framing are best-effort (mirror auth_sign_ecc); confirm on hardware.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ships the composite openpgp.js v6 (draft-ietf-openpgp-pqc) bundle plus
onlykey-openpgp-pqc.jsdelegation glue for composite keys loaded on the device (firmwarefeature/pqc-pgp-slots).pqc_mldsa_ed25519(107): signer hook returns{eccSignature(64), mldsaSignature(3309)}.pqc_mlkem_x25519(105):ecdh(X25519) +mlkemDecapshooks; openpgp.js does the KMAC256("OpenPGPCompositeKDFv1") combine + AES key-unwrap.IETF OpenPGP-PQC format (interoperates with Sequoia / openpgp.js, not GnuPG LibrePGP). Untested end-to-end — validate against a flashed device.