pecos_core/sims_rngs/chacha_rng.rs
1// Copyright 2024 The PECOS Developers
2//
3// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
4// in compliance with the License.You may obtain a copy of the License at
5//
6// https://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software distributed under the License
9// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
10// or implied. See the License for the specific language governing permissions and limitations under
11// the License.
12
13use super::sim_rng::SimRng;
14pub use rand_chacha::{ChaCha12Rng, ChaCha20Rng, ChaCha8Rng};
15
16impl SimRng for ChaCha8Rng {} // fastest but less cryptographically secure
17impl SimRng for ChaCha12Rng {}
18impl SimRng for ChaCha20Rng {} // slowest but most cryptographically secure