Expand description
Host-side RSA-2048 key material for OpenPGP card import.
A small front-end helper shared by keyroostctl and keyroost. It owns the one
external-dependency exception in the workspace — the rsa crate — so the
protocol crates stay dependency-free and the security-critical keygen / parse
logic lives in exactly one place. It produces the full CRT component set
(e, p, q, u, dp, dq, n, minimal big-endian) that keyroost_openpgp’s import
path frames into the card’s Extended Header List; the card selects which of
those parts it actually wants per its declared algorithm attributes.
Structs§
- RsaKey
Parts - RSA-2048 private-key components for OpenPGP import, minimal big-endian.
Enums§
- RsaKey
Error - Why obtaining RSA key parts failed. The
Displaystrings are user-facing.
Functions§
- generate_
2048 - Generate a fresh RSA-2048 key on the host and extract its import parts.
- load_
from_ file - Load an RSA private key from
pathand extract its import parts.