Expand description
OpenPGP Key Format Compatibility
This module provides basic OpenPGP (RFC 4880) key format support for Ed25519 keys. Supports key import/export and basic packet handling.
§Examples
use chie_crypto::openpgp::{OpenPgpPublicKey, OpenPgpSecretKey};
use chie_crypto::signing::KeyPair;
// Generate a keypair
let keypair = KeyPair::generate();
// Export as OpenPGP public key
let pgp_pub = OpenPgpPublicKey::from_ed25519(&keypair.public_key(), "user@example.com");
let armored = pgp_pub.to_armored();
// Export as OpenPGP secret key
let pgp_sec = OpenPgpSecretKey::from_ed25519(&keypair, "user@example.com");
let armored_sec = pgp_sec.to_armored();Structs§
- Open
PgpPublic Key - OpenPGP public key
- Open
PgpSecret Key - OpenPGP secret key
Enums§
- Open
PgpError - OpenPGP key format errors
Type Aliases§
- Open
PgpResult - Result type for OpenPGP operations