[kaffe] SHA1PRNG fix
Timothy Stack
stack at cs.utah.edu
Tue Jun 4 08:18:15 PDT 2002
> hi,
>
> I attached a patch for SHA1PRNG.java, it still wasn't quite doing what it
> was supposed to. Also, i think i forgot to mention that this was based on
> Classpath's (broken) code, so the copyright should probably be gpl'ed.
oops, i whiffed again...
in libraries/javalib/kaffe/security/provider/SHA1PRNG.java:
> @@ -112,6 +110,22 @@
> this.data,
> SEED_SIZE,
This is supposed to be zero. So it should look like:
System.arraycopy(this.seed,
0,
this.data,
0,
SEED_SIZE);
atleast, thats how i think its supposed to work.
thanks,
tim stack
More information about the kaffe
mailing list