6 releases (3 breaking)

0.4.0 Jan 27, 2025
0.3.2 Apr 15, 2023
0.3.1 Jun 15, 2021
0.3.0 Dec 14, 2020
0.1.0 Oct 30, 2018

#29 in Algorithms

Download history 310261/week @ 2024-11-28 418449/week @ 2024-12-05 437413/week @ 2024-12-12 237192/week @ 2024-12-19 157850/week @ 2024-12-26 340067/week @ 2025-01-02 465236/week @ 2025-01-09 391957/week @ 2025-01-16 405440/week @ 2025-01-23 460216/week @ 2025-01-30 577938/week @ 2025-02-06 514775/week @ 2025-02-13 597596/week @ 2025-02-20 606739/week @ 2025-02-27 618243/week @ 2025-03-06 525196/week @ 2025-03-13

2,453,349 downloads per month
Used in 11,623 crates (29 directly)

MIT/Apache

27KB
377 lines

rand_hc

Test Status Latest version Book API API

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

~62KB