[][src]Module sequoia_ffi::store

For storing OpenPGP certificates.

The key store stores OpenPGP Certificates ("Certs") using an arbitrary label. Stored keys are automatically updated from remote sources. This ensures that updates like new subkeys and revocations are discovered in a timely manner.

Security considerations

Storing public keys potentially leaks communication partners. Protecting against adversaries inspecting the local storage is out of scope for Sequoia. Please take the necessary precautions.

Sequoia updates keys in compliance with the network policy used to create the store.

Examples

XXX

Structs

Log

Represents a log entry.

Stamps

Counter and timestamps.

Stats

Statistics about bindings and stored keys.

Functions

sq_binding_cert

Returns the pgp_cert_t of this binding.

sq_binding_delete

Deletes this binding.

sq_binding_free

Frees a sq_binding_t.

sq_binding_import

Updates this binding with the given Cert.

sq_binding_iter_free

Frees a sq_binding_iter_t.

sq_binding_iter_next

Returns the next binding.

sq_binding_key

Returns the sq_key_t of this binding.

sq_binding_log

Lists all log entries related to this binding.

sq_binding_rotate

Forces a keyrotation to the given Cert.

sq_binding_stats

Returns the sq_stats_t of this binding.

sq_key_cert

Returns the pgp_cert_t.

sq_key_free

Frees a sq_key_t.

sq_key_import

Updates this stored key with the given Cert.

sq_key_iter_free

Frees a sq_key_iter_t.

sq_key_iter_next

Returns the next key.

sq_key_log

Lists all log entries related to this key.

sq_key_stats

Returns the sq_stats_t of this key.

sq_log_free

Frees a sq_log_t.

sq_log_iter_free

Frees a sq_log_iter_t.

sq_log_iter_next

Returns the next log entry.

sq_mapping_add

Adds a key identified by fingerprint to the mapping.

sq_mapping_delete

Deletes this mapping.

sq_mapping_free

Frees a sq_mapping_t.

sq_mapping_import

Imports a key into the mapping.

sq_mapping_iter

Lists all bindings.

sq_mapping_iter_free

Frees a sq_mapping_iter_t.

sq_mapping_iter_next

Returns the next mapping.

sq_mapping_log

Lists all log entries related to this mapping.

sq_mapping_lookup

Returns the binding for the given label.

sq_mapping_open

Opens a mapping.

sq_stats_free

Frees a sq_stats_t.

sq_store_list_keys

Lists all keys in the common key pool.

sq_store_list_mappings

Lists all mappings with the given prefix.

sq_store_lookup_by_keyid

Looks up a key in the common key pool by KeyID.

sq_store_lookup_by_subkeyid

Looks up a key in the common key pool by (Sub)KeyID.

sq_store_server_log

Lists all log entries.