Expand description
Core crate for Tink.
Re-exports
pub use utils::TinkError;
Modules
- Provides constants and convenience methods that define the format of ciphertexts and signatures.
- Provide methods to generate, read, write or validate keysets.
- Provides a container for a set of cryptographic primitives.
- Provides a container that for each supported key type holds a corresponding
KeyManager
object, which can generate new keys or instantiate the primitive corresponding to given key. - Common methods needed in subtle implementations.
- Utilities for Tink Rust code.
Enums
- The primitives available in Tink.
Constants
- The upstream Tink version that this Rust port is based on.
Traits
Aead
is the interface for authenticated encryption with additional authenticated data.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
DeterministicAead
is the interface for deterministic authenticated encryption with associated data.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Trait for an object that writes encrypted data. Users must call
close()
to finish. HybridDecrypt
is the interface for hybrid decryption.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
HybridEncrypt
is the interface for hybrid encryption.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
Mac
is the interface for MACs (Message Authentication Codes). This interface should be used for authentication only, and not for other purposes (for example, it should not be used to generate pseudorandom bytes).- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- The
Prf
trait is an abstraction for an element of a pseudo random function family, selected by a key. It has the following property: - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
Signer
is the signing interface for digital signature.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
StreamingAead
is an interface for streaming authenticated encryption with associated data.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
Verifier
is the verifying interface for digital signature.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
Type Definitions
- Type alias for
u32
values being used as key identifiers.