From 49d7c4f8874044e8d8455b884ef010462776ab9b Mon Sep 17 00:00:00 2001 From: Weiliang Li Date: Wed, 9 Dec 2020 13:40:03 +0900 Subject: [PATCH] revamp doc (#53) --- README.md | 2 +- src/consts.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ec1c586..11c1c53 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ Following dependencies are audited: ### 0.2.0 -- Revamp documentations +- Revamp documentation - Optional pure Rust AES backend - WASM compatibility diff --git a/src/consts.rs b/src/consts.rs index 40c14af..61980d2 100644 --- a/src/consts.rs +++ b/src/consts.rs @@ -1,4 +1,8 @@ +/// AES IV/nonce length pub const AES_IV_LENGTH: usize = 16; +/// AES tag length pub const AES_TAG_LENGTH: usize = 16; +/// AES IV + tag length pub const AES_IV_PLUS_TAG_LENGTH: usize = AES_IV_LENGTH + AES_TAG_LENGTH; +/// Empty bytes array pub const EMPTY_BYTES: [u8; 0] = [];