RustCrypto / CSRNGs

Collection of Cryptographically Secure PseudoRandom Number Generators written in pure Rust
10 stars 5 forks source link

Belt-HMAC-rng #5

Open makavity opened 8 months ago

makavity commented 8 months ago

Hello! Just implemented rng from STB (Belarus Crypto standard) https://apmi.bsu.by/assets/files/std/brng-spec25.pdf

@newpavlov

makavity commented 8 months ago

Benchmark on M1:

test belt_uint32    ... bench:     484,215 ns/iter (+/- 264,490) = 8 MB/s
test belt_uint64    ... bench:     958,108 ns/iter (+/- 32,285) = 8 MB/s
test gen_bytes_belt ... bench: 124,991,829 ns/iter (+/- 41,119,294) = 8 MB/s