Module openpgp

Module openpgp 

Source
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§

OpenPgpPublicKey
OpenPGP public key
OpenPgpSecretKey
OpenPGP secret key

Enums§

OpenPgpError
OpenPGP key format errors

Type Aliases§

OpenPgpResult
Result type for OpenPGP operations