Expand description

This crate implements crypto primitives which are used in many other Cosmian cryptographic resources.

Re-exports

  • pub use kdf::*;

Modules

Macros

  • Blake2b 512 Variable Output Hash Function.
  • Blake2s 256 Hash Function with Variable Output.
  • Key Derivation Function (KDF).
  • Key Derivation Function (KDF).

Structs

Enums

Constants

Traits

  • Cryptographic bytes
  • Defines a DEM based on a symmetric scheme as defined in section 9.1 of the ISO 2004.
  • Defines a DEM based on a symmetric scheme as defined in section 9.1 of the ISO 2004 that allows encryption and decryption in place.
  • Defines a DEM based on a symmetric scheme as defined in section 9.1 of the ISO 2004 that allows encrypting and decrypting a stream.
  • Elliptic Curve Integrated Encryption Scheme (ECIES) trait.
  • To use with ECIES, Private keys must implement this trait. The only requirement is that their are instantiable from a random value.
  • To use with ECIES, Public keys must implement this trait.
  • To use with ECIES, Shared points must implement this trait.
  • Trait for ECIES stream cipher.
  • A Fixed Size Array of cryptographic bytes
  • Defines a DEM which is instantiable from a key
  • A Fixed Size Array of cryptographic bytes that can be generated from a cryptographically secure random generator.
  • Secret array of bytes such as a symmetric key or an elliptic curve private key.

Functions

Type Aliases