ggstd/crypto/cipher/
mod.rs

1// Copyright 2023 The rust-ggstd authors.
2// Copyright 2009 The Go Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file.
5
6//! Package cipher implements standard block cipher modes that can be wrapped
7//! around low-level block cipher implementations.
8//! See <https://csrc.nist.gov/groups/ST/toolkit/BCM/current_modes.html>
9//! and NIST Special Publication 800-38A.
10
11mod cbc;
12mod cipher;
13mod ctr;
14
15pub use cbc::{CBCDecrypter, CBCEncrypter};
16pub use cipher::{Block, BlockMode, Stream};
17pub use ctr::CTR;
18
19#[cfg(test)]
20mod cbc_aes_test;
21#[cfg(test)]
22mod cipher_test;
23#[cfg(test)]
24mod common_test;
25#[cfg(test)]
26mod ctr_aes_test;
27#[cfg(test)]
28mod ctr_test;