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
KeyManagerobject, 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
Aeadis the interface for authenticated encryption with additional authenticated data.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
DeterministicAeadis 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. HybridDecryptis the interface for hybrid decryption.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
HybridEncryptis the interface for hybrid encryption.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
Macis 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
Prftrait 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.
Signeris the signing interface for digital signature.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
StreamingAeadis an interface for streaming authenticated encryption with associated data.- Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
Verifieris 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
u32values being used as key identifiers.