pub use pgp;
mod error;
mod internal;
mod types;
mod decrypt;
mod encrypt;
mod key;
mod keyring;
mod parse;
mod sign;
mod ssh;
mod verify;
#[cfg(any(feature = "network", feature = "dane"))]
mod network;
#[cfg(feature = "card")]
pub mod card;
pub mod keystore;
pub use error::{Error, Result};
pub use types::{
AvailableSubkey, CertificateInfo, CertificationType, CipherSuite, GeneratedKey,
KeyCipherDetails, KeyType, RsaPublicKey, SigningPublicKey, SubkeyFlags, SubkeyInfo,
UIDCertification, UserIDInfo,
};
pub use parse::{
get_all_available_subkeys, get_available_authentication_subkeys,
get_available_encryption_subkeys, get_available_signing_subkeys, get_key_cipher_details,
has_available_encryption_subkey, has_available_signing_subkey, parse_cert_bytes,
parse_cert_file,
};
pub use encrypt::{
bytes_encrypted_for, encrypt_bytes, encrypt_bytes_to_multiple,
encrypt_bytes_to_multiple_seipd_v2, encrypt_bytes_to_multiple_v2,
encrypt_bytes_to_multiple_with_algo, encrypt_bytes_v2, encrypt_file,
encrypt_file_to_multiple, encrypt_reader_to_file, file_encrypted_for,
};
pub use pgp::crypto::sym::SymmetricKeyAlgorithm;
pub use decrypt::{decrypt_bytes, decrypt_bytes_legacy, decrypt_file, decrypt_reader_to_file};
pub use sign::{
sign_bytes, sign_bytes_cleartext, sign_bytes_cleartext_with_primary_key, sign_bytes_detached,
sign_bytes_detached_with_primary_key, sign_bytes_with_primary_key, sign_file,
sign_file_cleartext, sign_file_detached,
};
pub use verify::{
verify_and_extract_bytes, verify_and_extract_file, verify_bytes, verify_bytes_detached,
verify_file, verify_file_detached,
};
pub use key::{
add_uid, certify_key, create_key, create_key_simple, get_pub_key, revoke_key, revoke_uid,
update_password, update_primary_expiry, update_subkeys_expiry,
};
pub use keyring::{
export_keyring_armored, export_keyring_file, merge_keys, parse_keyring_bytes,
parse_keyring_file,
};
pub use ssh::{get_signing_pubkey, get_ssh_pubkey, ssh_sign_raw, SshHashAlgorithm, SshSignResult};
#[cfg(feature = "keystore")]
pub use keystore::{
decrypt_bytes_from_store,
decrypt_file_from_store,
encrypt_bytes_from_store,
encrypt_bytes_to_multiple_from_store,
encrypt_file_from_store,
encrypt_file_to_multiple_from_store,
sign_bytes_detached_from_store,
sign_bytes_from_store,
sign_file_detached_from_store,
sign_file_from_store,
verify_bytes_detached_from_store,
verify_bytes_from_store,
verify_file_detached_from_store,
verify_file_from_store,
KeyStore,
};
#[cfg(feature = "network")]
pub use network::{
fetch_key_by_email, fetch_key_by_email_from_keyserver, fetch_key_by_fingerprint,
fetch_key_by_keyid,
};
#[cfg(feature = "dane")]
pub use network::fetch_key_by_email_from_dane;