Expand description
Core crate for Tink.
Re-exports§
pub use utils::TinkError;
Modules§
- cryptofmt
- Provides constants and convenience methods that define the format of ciphertexts and signatures.
- keyset
- Provide methods to generate, read, write or validate keysets.
- primitiveset
- Provides a container for a set of cryptographic primitives.
- registry
- 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. - subtle
- Common methods needed in subtle implementations.
- utils
- Utilities for Tink Rust code.
Enums§
- Primitive
- The primitives available in Tink.
Constants§
- UPSTREAM_
VERSION - The upstream Tink version that this Rust port is based on.
Traits§
- Aead
Aead
is the interface for authenticated encryption with additional authenticated data.- Aead
BoxClone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Deterministic
Aead DeterministicAead
is the interface for deterministic authenticated encryption with associated data.- Deterministic
Aead BoxClone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Encrypting
Write - Trait for an object that writes encrypted data. Users must call
close()
to finish. - Hybrid
Decrypt HybridDecrypt
is the interface for hybrid decryption.- Hybrid
Decrypt BoxClone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Hybrid
Encrypt HybridEncrypt
is the interface for hybrid encryption.- Hybrid
Encrypt BoxClone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Mac
Mac
is the interface for MACs (Message Authentication Codes).- MacBox
Clone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Prf
- The
Prf
trait is an abstraction for an element of a pseudo random function family, selected by a key. It has the following property: - PrfBox
Clone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Signer
Signer
is the signing interface for digital signature.- Signer
BoxClone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Streaming
Aead StreamingAead
is an interface for streaming authenticated encryption with associated data.- Streaming
Aead BoxClone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
- Verifier
Verifier
is the verifying interface for digital signature.- Verifier
BoxClone - Trait bound to indicate that primitive trait objects should support cloning themselves as trait objects.
Type Aliases§
- KeyId
- Type alias for
u32
values being used as key identifiers.