Module sequoia_ffi::openpgp::cert [−][src]
Expand description
OpenPGP Certificates.
Wraps sequoia-openpgp::Cert
and related functionality.
Structs
An OpenPGP Certificate.
Wraps a CertParser for export via the FFI.
Wraps a KeyAmalgamationIter for export via the FFI.
Wraps a UserIDIter for export via the FFI.
Wraps a ValidKeyAmalgamationIter for export via the FFI.
Wraps a ValidKeyAmalgamationIter for export via the FFI.
Functions
Returns whether the Cert is alive at the specified time.
Derives a TSK
object from this key.
Adds an certification capable subkey.
Adds a signing capable subkey.
Adds an encryption capable subkey.
Adds a new user ID. The first user ID added replaces the default
Frees an pgp_cert_builder_t
.
Generates a general-purpose key.
Generates the actual Cert.
Creates a default pgp_cert_builder_t
.
Sets the encryption and signature algorithms for primary and all
Sets the creation time.
Sets the password for primary and all subkeys.
Clones this object.
Returns a human readable description of this object
Compares objects.
Returns the fingerprint.
Frees this object.
Parses an object from the given buffer.
Parses an object from the given file.
Returns the first Cert found in the packet parser.
Returns the first Cert found in m
.
Parses an object from the given reader.
Adds packets to the Cert.
Returns whether the Cert includes any secret key material.
Returns an iterator over all Key
s in a Cert.
Frees a pgp_cert_key_iter_t.
Returns the next key. Returns NULL if there are no more elements.
Changes the iterator to only return keys that are valid at time
Changes the iterator to only return keys that have secret keys.
Changes the iterator to only return keys that have unencrypted
Merges other
into cert
, ignoring secret key material in other
.
Merges other
into cert
, including secret key material in other
.
Frees a pgp_cert_parser_t.
Returns a CertParser.
Returns a CertParser.
Returns the next Cert, if any.
Returns a reference to the Cert’s primary key.
Returns an iterator over the Cert’s user id bindings.
Returns the Cert’s revocation status as of a given time.
Returns a new revocation certificate for the Cert.
Returns a new revocation certificate for the Cert.
Serializes this object.
Sets the key to expire at the given time.
Returns a human readable description of this object
Returns an iterator over the Cert’s user ids.
Frees a pgp_user_id_iter_t.
Returns the next UserIDAmalgamation
.
Changes the iterator to only return keys that are valid at time
Returns an iterator over all valid Key
s in a Cert.
Changes the iterator to only return keys that are alive.
Changes the iterator to only return keys that are certification
Changes the iterator to only return keys that are certification
Changes the iterator to only return keys that are capable of
Changes the iterator to only return keys that are capable of
Frees a pgp_cert_key_iter_t.
Returns the next valid key. Returns NULL if there are no more
Changes the iterator to only return keys whose revocation status
Changes the iterator to only return keys that have secret keys.
Changes the iterator to only return keys that have unencrypted
Returns an iterator over the Cert’s user id bundles.
Frees a pgp_user_id_iter_t.
Returns the next UserIDAmalgamation
.