justinwongcn/moonpgp/packet does not have a README file
pub(all) struct AeadPacket {
version : Int
cipher_algo : Int
aead_algo : Int
chunk_octet : Int
iv : Bytes
ciphertext : Bytes
} derive(Debug)pub(all) struct OnePassSigPacket {
version : Int
sig_type : SigType
hash_algo : Int
pub_algo : PubKeyAlgo
key_id : Bytes
salt : Bytes
fingerprint : Bytes
nested : Bool
} derive(Debug)pub(all) struct PkeskPacket {
version : Int
key_id : Bytes
key_version : Int
fingerprint : Bytes
pub_algo : PubKeyAlgo
encrypted : Bytes
ecdh_ephemeral : Bytes
} derive(Debug)pub(all) struct PublicKeyPacket {
version : Int
creation_time : Int
algo : PubKeyAlgo
params : Array[Bytes]
} derive(Debug)pub(all) struct SecretKeyPacket {
public : PublicKeyPacket
s2k_usage : Int
cipher_algo : Int
aead_algo : Int
s2k_spec : Bytes
iv : Bytes
secret_material : Bytes
dummy : Bool
} derive(Debug)pub(all) struct SeipdPacket {
version : Int
cipher_algo : Int
aead_algo : Int
chunk_octet : Int
salt : Bytes
ciphertext : Bytes
} derive(Debug)pub(all) enum SigType {
BinaryDocument
CanonicalTextDocument
Standalone
GenericCertification
PersonaCertification
CasualCertification
PositiveCertification
SubkeyBinding
PrimaryKeyBinding
DirectSignature
KeyRevocation
SubkeyRevocation
CertificationRevocation
Timestamp
ThirdPartyConfirmation
Unknown(Int)
} derive(Eq, Debug)pub(all) struct SignaturePacket {
version : Int
sig_type : SigType
pub_algo : PubKeyAlgo
hash_algo : Int
hashed_subpackets : Array[SigSubpacket]
unhashed_subpackets : Array[SigSubpacket]
raw_hashed_area : Bytes
fast_hash : Int
salt : Bytes
sig_params : Array[Bytes]
} derive(Debug)let FEATURE_SEIPD_V1 : Intlet MAX_MPI_BITS : Intlet SIGSUB_CREATION_TIME : Intlet SIGSUB_PREFERRED_AEAD : Intfn is_known_sigsub_type(t : Int) -> Boolfn salt_size_of_hash(hash_id : Int) -> Int raisefn session_key_checksum(key : BytesView) -> Intfn signature_trailer(version : Int, hashed_body_len : Int) -> BytesInstall
Download zipPure-MoonBit OpenPGP implementation (RFC 4880/9580): email encryption, decryption, signing and verification, interoperable with GnuPG and gopenpgp.