dcrypt_pke/
lib.rs

1//! Public Key Encryption (PKE) schemes for the DCRYPT library.
2#![cfg_attr(not(feature = "std"), no_std)]
3
4// Required for Vec, String, format! in no_std + alloc environments
5// This makes the `alloc` crate available when the "alloc" feature of this crate ("pke") is enabled.
6#[cfg(all(not(feature = "std"), feature = "alloc"))]
7extern crate alloc;
8
9pub mod ecies;
10pub mod error;
11
12// Re-export key items
13pub use ecies::{EciesP192, EciesP224, EciesP256, EciesP384, EciesP521};
14pub use error::{Error, Result};