Crate cosmian_crypto_core
source · [−]Expand description
This crate implements crypto primitives which are used in many other Cosmian cryptographic resources:
- symmetric cryptography primitives can be found in the
symmetric_crypto
module; - asymmetric cryptography primitives can be found in the
asymmetric_crypto
module; - a Key Derivation Function (KDF) can be found in the
kdf
module; - a Random Number Generator (RNG) can be found in the
entropy
module.
CryptoCoreError
is the error type of the library.
This crate also exposes a few traits for cryptographic objects defined in the modules.
Modules
Define the
SymmetricCrypto
and DEM
traits and provide an implementation
based on the AES GCM algorithm. Define the Block
and Metadata
objects
to ease the use of AES on real data.Enums
Error type for this crate.
Traits
Cryptographic key.