219 This implementation of HC-128 does not yet have the test vectors. HC-256 was using a table size of 2660 instead of 2560, this does not cause issue with the generated key stream, but slightly lengthens the initialization time. The function h2 in HC-256 used self.ptable instead of self.qtable, this means that it does not apply linear masking when the stream is using h2. For inputs that never get output from h2 it gives the correct results, but once h2 is in use the values are incorrect.
219 This implementation of HC-128 does not yet have the test vectors. HC-256 was using a table size of 2660 instead of 2560, this does not cause issue with the generated key stream, but slightly lengthens the initialization time. The function
h2
in HC-256 usedself.ptable
instead ofself.qtable
, this means that it does not apply linear masking when the stream is usingh2
. For inputs that never get output fromh2
it gives the correct results, but onceh2
is in use the values are incorrect.