[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/22731] Signature: Impossible to re-use key
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/22731] Signature: Impossible to re-use key |
Date: |
16 Oct 2005 01:26:51 -0000 |
According to the Java API documentation, it's only necessary to call
Signature.initVerify(...) or Signature.initSign(...) once. So the following
command sequence is allowed:
Signature.initVerify(...);
Signature.update(...);
Signature.verify(...);
Signature.update(...); <-- SignatureException is thrown
Signature.verify(...);
Classpath's implementations of verify(...) and sign(...) reset the key, but
they should keep it for reuse.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2004-05-07
23:59 -------
Proposed fix as patch #3035
------- Comment #2 from from-classpath at savannah dot gnu dot org 2004-05-08
06:06 -------
Fixed in CVS.
2004-05-08 Casey Marshall <address@hidden>
* java/security/Signature.java
(sign): Don't set state to UNINITIALIZED.
(verify): Likewise.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22731
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/22731] Signature: Impossible to re-use key,
gcc-bugzilla at gcc dot gnu dot org <=