#random #rng #hc128

no-std rand_hc

HC128 random number generator

4 releases (2 breaking)

new 0.3.1 Jun 15, 2021
0.3.0 Dec 14, 2020
0.2.0 Jun 12, 2019
0.1.1 Jun 6, 2019
0.1.0 Oct 30, 2018

#14 in #rng

Download history 267655/week @ 2021-02-26 264560/week @ 2021-03-05 284214/week @ 2021-03-12 266672/week @ 2021-03-19 285846/week @ 2021-03-26 262157/week @ 2021-04-02 285686/week @ 2021-04-09 272609/week @ 2021-04-16 270684/week @ 2021-04-23 255690/week @ 2021-04-30 293320/week @ 2021-05-07 284565/week @ 2021-05-14 285070/week @ 2021-05-21 282152/week @ 2021-05-28 302723/week @ 2021-06-04 263301/week @ 2021-06-11

1,189,102 downloads per month
Used in 8,774 crates (15 directly)

MIT/Apache

76KB
1K SLoC

rand_hc

Test Status Latest version [Book API API Minimum rustc version

A cryptographically secure random number generator that uses the HC-128 algorithm.

HC-128 is a stream cipher designed by Hongjun Wu[^1], that we use as an RNG. It is selected as one of the "stream ciphers suitable for widespread adoption" by eSTREAM[^2].

Links:

[^1]: Hongjun Wu (2008). "The Stream Cipher HC-128". The eSTREAM Finalists, LNCS 4986, pp. 39–47, Springer-Verlag.

[^2]: eSTREAM: the ECRYPT Stream Cipher Project

Crate Features

rand_hc is no_std compatible. It does not require any functionality outside of the core lib, thus there are no features to configure.

License

rand_hc is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

Dependencies