Skip to content

Commit 4b8effb

Browse files
committed
rand_hc: Clarify we implement the one and only HC-128 version
Fixes #55.
1 parent be9aa09 commit 4b8effb

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

rand_hc/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [unreleased]
8+
### Changes
9+
- Clarify which version of HC-128 is implemented
10+
711
## [0.5.0] - 2026-02-01
812
### Changes
913
- Use Edition 2024 and MSRV 1.85 ([#73])

rand_hc/src/hc128.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ const SEED_WORDS: usize = 8; // 128 bit key followed by 128 bit iv
3535
/// operations that parallelize well, it has very good performance. The size of
3636
/// the array it needs, 4kb, can however be a disadvantage.
3737
///
38-
/// This implementation is not based on the version of HC-128 submitted to the
39-
/// eSTREAM contest, but on a later version by the author with a few small
40-
/// improvements from December 15, 2009[^3].
38+
/// This implementation is not based on the reference implementation of HC-128
39+
/// submitted to the eSTREAM contest, but on a later implementation by the
40+
/// author with a few performance optimizations[^3].
4141
///
4242
/// HC-128 has no known weaknesses that are easier to exploit than doing a
4343
/// brute-force search of 2<sup>128</sup>. A very comprehensive analysis of the
@@ -58,10 +58,10 @@ const SEED_WORDS: usize = 8; // 128 bit key followed by 128 bit iv
5858
/// *The eSTREAM Finalists*, LNCS 4986, pp. 39–47, Springer-Verlag.
5959
///
6060
/// [^2]: [eSTREAM: the ECRYPT Stream Cipher Project](
61-
/// http://www.ecrypt.eu.org/stream/)
61+
/// http://www.ecrypt.eu.org/stream/).
6262
///
63-
/// [^3]: Hongjun Wu, [Stream Ciphers HC-128 and HC-256](
64-
/// https://www.ntu.edu.sg/home/wuhj/research/hc/index.html)
63+
/// [^3]: Hongjun Wu (December 2009). `hc128_opt32.h`, [Stream Ciphers HC-128 and HC-256](
64+
/// https://web.archive.org/web/20110527154230/https://www.ntu.edu.sg/home/wuhj/research/hc/index.html).
6565
///
6666
/// [^4]: Shashwat Raizada (January 2015),["Some Results On Analysis And
6767
/// Implementation Of HC-128 Stream Cipher"](

0 commit comments

Comments
 (0)