[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

[GNU Crypto] Ent bug, Version 2.0.1



Dear gnu-crypto-developers:

the Ent tool to determine basic statistical parameters of an RNG seems to have a little effect: once it examines the distribution of a generator which delivers a Chi2-Value of exactly .5, the for-loop in line 332 of Ent.java will never be broken and the array CHI_SQUARE_P will be accessed at the (illegal) position CHI_SQUARE_P[0][-1].

Adding a line before line 337, saying { if (i < 0) i = 0; } cures the problem.

Best wishes,
Karsten
--
Karsten Tinnefeld                                 karsten@xxxxxxxxxxxxx
Silberknapp 68
44227 Dortmund                                        T +49 231  773812
Deutschland                      M +49 178 2808107    F +49 231 9710384




_______________________________________________ gnu-crypto-discuss mailing list gnu-crypto-discuss@xxxxxxx http://mail.nongnu.org/mailman/listinfo/gnu-crypto-discuss

[Home]     [Gnu Classpath]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]     [Red Hat 9 Bible]     [Fedora Bible]     [Red Hat 9]     [Network Security Reading]

  Powered by Linux