[][src]Module sequoia_openpgp_ffi::tpk

Transferable public keys.

Wraps sequoia-openpgp::TPK and related functionality.

Structs

KeyIterWrapper

Wraps a KeyIter for export via the FFI.

TPK

A transferable public key (TPK).

TPKParserWrapper

Wraps a TPKParser for export via the FFI.

Functions

pgp_tpk_alive

Returns whether the TPK is alive at the specified time.

pgp_tpk_as_tsk

Derives a TSK object from this key.

pgp_tpk_builder_add_certification_subkey

Adds an certification capable subkey.

pgp_tpk_builder_add_encryption_subkey

Adds an encryption capable subkey.

pgp_tpk_builder_add_signing_subkey

Adds a signing capable subkey.

pgp_tpk_builder_add_userid

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

pgp_tpk_builder_autocrypt

Generates a key compliant to Autocrypt Level 1.

pgp_tpk_builder_free

Frees an pgp_tpk_builder_t.

pgp_tpk_builder_general_purpose

Generates a general-purpose key.

pgp_tpk_builder_generate

Generates the actual TPK.

pgp_tpk_builder_new

Creates a default pgp_tpk_builder_t.

pgp_tpk_builder_set_cipher_suite

Sets the encryption and signature algorithms for primary and all

pgp_tpk_clone

Clones this object.

pgp_tpk_debug

Returns a human readable description of this object

pgp_tpk_equal

Compares objects.

pgp_tpk_expired

Returns whether the TPK has expired.

pgp_tpk_fingerprint

Returns the fingerprint.

pgp_tpk_free

Frees this object.

pgp_tpk_from_bytes

Parses an object from the given buffer.

pgp_tpk_from_file

Parses an object from the given file.

pgp_tpk_from_packet_parser

Returns the first TPK found in the packet parser.

pgp_tpk_from_packet_pile

Returns the first TPK found in m.

pgp_tpk_from_reader

Parses an object from the given reader.

pgp_tpk_is_tsk

Returns whether the TPK includes any secret key material.

pgp_tpk_key_iter_alive

Changes the iterator to only return keys that are alive.

pgp_tpk_key_iter_alive_at

Changes the iterator to only return keys that are alive at the

pgp_tpk_key_iter_all

Returns an iterator over all Keys in a TPK.

pgp_tpk_key_iter_certification_capable

Changes the iterator to only return keys that are certification

pgp_tpk_key_iter_encrypting_capable_at_rest

Changes the iterator to only return keys that are capable of

pgp_tpk_key_iter_encrypting_capable_for_transport

Changes the iterator to only return keys that are capable of

pgp_tpk_key_iter_free

Frees a pgp_tpk_key_iter_t.

pgp_tpk_key_iter_next

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

pgp_tpk_key_iter_revoked

Changes the iterator to only return keys whose revocation status

pgp_tpk_key_iter_secret

Changes the iterator to only return keys that have secret keys (or

pgp_tpk_key_iter_signing_capable

Changes the iterator to only return keys that are certification

pgp_tpk_key_iter_unencrypted_secret

Changes the iterator to only return keys that have unencrypted

pgp_tpk_key_iter_valid

Returns an iterator over the TPK's live, non-revoked keys.

pgp_tpk_merge

Merges other into tpk.

pgp_tpk_merge_packets

Adds packets to the TPK.

pgp_tpk_parser_free

Frees a pgp_tpk_parser_t.

pgp_tpk_parser_from_bytes

Returns a TPKParser.

pgp_tpk_parser_from_packet_parser

Returns a TPKParser.

pgp_tpk_parser_next

Returns the next TPK, if any.

pgp_tpk_primary_key

Returns a reference to the TPK's primary key.

pgp_tpk_primary_user_id

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

pgp_tpk_revoke

Returns a new revocation certificate for the TPK.

pgp_tpk_revoke_in_place

Adds a revocation certificate to the tpk.

pgp_tpk_revoked

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

pgp_tpk_serialize

Serializes this object.

pgp_tpk_set_expiry

Changes the TPK's expiration.

pgp_tpk_to_string

Returns a human readable description of this object

pgp_tpk_user_id_binding_iter

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

pgp_user_id_binding_iter_free

Frees a pgp_user_id_binding_iter_t.

pgp_user_id_binding_iter_next

Returns the next UserIDBinding.

pgp_user_id_binding_selfsig

Returns a reference to the self-signature, if any.

pgp_user_id_binding_user_id

Returns the user id.