Skip to content

Commit

Permalink
Updated doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IceBlockProduction committed Aug 11, 2022
1 parent eecea84 commit 2a2ef9a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions colm/src/lib.rs
Expand Up @@ -12,8 +12,8 @@
//!
//! # Usage
//! ```
//! use colm::{Colm0Aes128, Nonce}; // If you don't know what block cipher to use with COLM choose the pre-defined type with AES
//! use colm::aead::{Aead, NewAead};
//! use colm_rs::{Colm0Aes128, Nonce}; // If you don't know what block cipher to use with COLM choose the pre-defined type with AES
//! use colm_rs::aead::{Aead, KeyInit};
//!
//! let key = b"just another key";
//! let cipher = Colm0Aes128::new(key.into());
Expand All @@ -32,8 +32,8 @@
//! ## Usage with AAD
//! COLM can authenticate additional data that is not encrypted alongside with the ciphertext.
//! ```
//! use colm::{Colm0Aes128, Nonce}; // If you don't know what block cipher to use with COLM choose the pre-defined type with AES
//! use colm::aead::{Aead, NewAead, Payload};
//! use colm_rs::{Colm0Aes128, Nonce}; // If you don't know what block cipher to use with COLM choose the pre-defined type with AES
//! use colm_rs::aead::{Aead, KeyInit, Payload};
//!
//! let key = b"just another key";
//! let cipher = Colm0Aes128::new(key.into());
Expand Down Expand Up @@ -77,9 +77,9 @@
//! ```
//! # #[cfg(feature = "heapless")]
//! # {
//! use colm::{Colm0Aes128, Nonce}; // If you don't know what block cipher to use with COLM choose the pre-defined type with AES
//! use deoxys::aead::{AeadInPlace, NewAead};
//! use deoxys::aead::heapless::Vec;
//! use colm_rs::{Colm0Aes128, Nonce}; // If you don't know what block cipher to use with COLM choose the pre-defined type with AES
//! use colm_rs::aead::{AeadInPlace, KeyInit};
//! use colm_rs::aead::heapless::Vec;
//!
//! let key = b"just another key";
//! let cipher = Colm0Aes128::new(key,into());
Expand Down

0 comments on commit 2a2ef9a

Please sign in to comment.