[][src]Module sequoia_ffi::openpgp::cert

OpenPGP Certificates.

Wraps sequoia-openpgp::Cert and related functionality.

Structs

Cert

An OpenPGP Certificate.

CertParserWrapper

Wraps a CertParser for export via the FFI.

KeyAmalgamationIterWrapper

Wraps a KeyAmalgamationIter for export via the FFI.

UserIDIterWrapper

Wraps a UserIDIter for export via the FFI.

ValidKeyAmalgamationIterWrapper

Wraps a ValidKeyAmalgamationIter for export via the FFI.

ValidUserIDIterWrapper

Wraps a ValidKeyAmalgamationIter for export via the FFI.

Functions

pgp_cert_alive

Returns whether the Cert is alive at the specified time.

pgp_cert_as_tsk

Derives a TSK object from this key.

pgp_cert_builder_add_certification_subkey

Adds an certification capable subkey.

pgp_cert_builder_add_signing_subkey

Adds a signing capable subkey.

pgp_cert_builder_add_transport_encryption_subkey

Adds an encryption capable subkey.

pgp_cert_builder_add_userid

Adds a new user ID. The first user ID added replaces the default

pgp_cert_builder_free

Frees an pgp_cert_builder_t.

pgp_cert_builder_general_purpose

Generates a general-purpose key.

pgp_cert_builder_generate

Generates the actual Cert.

pgp_cert_builder_new

Creates a default pgp_cert_builder_t.

pgp_cert_builder_set_cipher_suite

Sets the encryption and signature algorithms for primary and all

pgp_cert_builder_set_creation_time

Sets the creation time.

pgp_cert_builder_set_password

Sets the password for primary and all subkeys.

pgp_cert_clone

Clones this object.

pgp_cert_debug

Returns a human readable description of this object

pgp_cert_equal

Compares objects.

pgp_cert_fingerprint

Returns the fingerprint.

pgp_cert_free

Frees this object.

pgp_cert_from_bytes

Parses an object from the given buffer.

pgp_cert_from_file

Parses an object from the given file.

pgp_cert_from_packet_parser

Returns the first Cert found in the packet parser.

pgp_cert_from_packet_pile

Returns the first Cert found in m.

pgp_cert_from_reader

Parses an object from the given reader.

pgp_cert_insert_packets

Adds packets to the Cert.

pgp_cert_is_tsk

Returns whether the Cert includes any secret key material.

pgp_cert_key_iter

Returns an iterator over all Keys in a Cert.

pgp_cert_key_iter_free

Frees a pgp_cert_key_iter_t.

pgp_cert_key_iter_next

Returns the next key. Returns NULL if there are no more elements.

pgp_cert_key_iter_policy

Changes the iterator to only return keys that are valid at time

pgp_cert_key_iter_secret

Changes the iterator to only return keys that have secret keys.

pgp_cert_key_iter_unencrypted_secret

Changes the iterator to only return keys that have unencrypted

pgp_cert_merge_public

Merges other into cert, ignoring secret key material in other.

pgp_cert_merge_public_and_secret

Merges other into cert, including secret key material in other.

pgp_cert_parser_free

Frees a pgp_cert_parser_t.

pgp_cert_parser_from_bytes

Returns a CertParser.

pgp_cert_parser_from_packet_parser

Returns a CertParser.

pgp_cert_parser_next

Returns the next Cert, if any.

pgp_cert_primary_key

Returns a reference to the Cert's primary key.

pgp_cert_primary_user_id

Returns an iterator over the Cert's user id bindings.

pgp_cert_revocation_status

Returns the Cert's revocation status as of a given time.

pgp_cert_revoke

Returns a new revocation certificate for the Cert.

pgp_cert_revoke_in_place

Returns a new revocation certificate for the Cert.

pgp_cert_serialize

Serializes this object.

pgp_cert_set_expiration_time

Sets the key to expire at the given time.

pgp_cert_to_string

Returns a human readable description of this object

pgp_cert_user_id_iter

Returns an iterator over the Cert's user ids.

pgp_cert_user_id_iter_free

Frees a pgp_user_id_iter_t.

pgp_cert_user_id_iter_next

Returns the next UserIDAmalgamation.

pgp_cert_user_id_iter_policy

Changes the iterator to only return keys that are valid at time

pgp_cert_valid_key_iter

Returns an iterator over all valid Keys in a Cert.

pgp_cert_valid_key_iter_alive

Changes the iterator to only return keys that are alive.

pgp_cert_valid_key_iter_for_certification

Changes the iterator to only return keys that are certification

pgp_cert_valid_key_iter_for_signing

Changes the iterator to only return keys that are certification

pgp_cert_valid_key_iter_for_storage_encryption

Changes the iterator to only return keys that are capable of

pgp_cert_valid_key_iter_for_transport_encryption

Changes the iterator to only return keys that are capable of

pgp_cert_valid_key_iter_free

Frees a pgp_cert_key_iter_t.

pgp_cert_valid_key_iter_next

Returns the next valid key. Returns NULL if there are no more

pgp_cert_valid_key_iter_revoked

Changes the iterator to only return keys whose revocation status

pgp_cert_valid_key_iter_secret

Changes the iterator to only return keys that have secret keys.

pgp_cert_valid_key_iter_unencrypted_secret

Changes the iterator to only return keys that have unencrypted

pgp_cert_valid_user_id_iter

Returns an iterator over the Cert's user id bundles.

pgp_cert_valid_user_id_iter_free

Frees a pgp_user_id_iter_t.

pgp_cert_valid_user_id_iter_next

Returns the next UserIDAmalgamation.