cosmian_cover_crypt 9.0.0

Key Policy attribute encryption based on subset cover
Documentation
//! This crate implements the `CoverCrypt` cryptographic scheme which allows to:
//! - encrypt messages for a given set of policy attributes;
//! - decrypt messages if the decryptor has been assigned one of these policy
//! attributes;
//! - "rotate" policy attributes, which allows to prevent decryption of older
//! ciphertexts for a new user and decryption of new ciphertexts by old users.
//! Old users can be granted decryption right for new ciphertexts after a key
//! refresh.
//!
//! The `api` module exposes the generic definition of `CoverCrypt`.
//!
//! The `interface::statics` module exposes instantiates `CoverCrypt` using
//! a DEM scheme build on top of AES256-GCM and a asymmetric key pair built on
//! top of Curve25519.
//!
//! # Example
//!
//! See `examples/runme.rs`.

mod error;

pub mod core;
pub mod statics;

#[cfg(feature = "interface")]
pub mod interfaces;

pub use self::core::api::{CleartextHeader, CoverCrypt, EncryptedHeader};
pub use error::Error;