1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
// Copyright (C) 2020 Éloïs SANCHEZ. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. //! Manage cryptographic operations for DUniter Protocols and the Duniter eco-system most broadly. //! //! `dup` means DUniter Protocols. //! //! ## Summary //! //! * [Handle DEWIF format](./dewif/index.html#handle-dewif-format) //! * [Write DEWIF file](./dewif/index.html#write-ed25519-key-pair-in-dewif-file) //! * [Read DEWIF file](./dewif/index.html#read-dewif-file) //! * [Sha256](./hashs/index.html) //! * [Compute Sha256 hash](./hashs/index.html#compute-sha256-hash) //! * [Ed25519](./keys/index.html) //! * [generate and use ed25519 key-pair](./keys/index.html#generate-and-use-ed25519-key-pair) //! * [Private message encryption with authentification](./private_message/index.html) //! * [Encrypt a private message (sender side)](./private_message/index.html#encrypt-a-private-message-sender-side) //! * [Decrypt a private message (receiver side)](./private_message/index.html#decrypt-a-private-message-receiver-side) //! #![deny( clippy::expect_used, clippy::unwrap_used, missing_docs, missing_copy_implementations, trivial_casts, trivial_numeric_casts, unstable_features, unused_import_braces, unused_qualifications )] #![allow(non_camel_case_types)] #[cfg(feature = "aes")] pub mod aes256; pub mod bases; #[cfg(feature = "dewif")] pub mod dewif; pub mod hashs; pub mod keys; #[cfg(feature = "private_message")] pub mod private_message; #[cfg(feature = "rand")] pub mod rand; #[cfg(feature = "scrypt")] pub mod scrypt; pub mod seeds;