modified context to disable itself on doFinal().
private final LMOtsPrivateKey key;
private final LMSigParameters sigParams;
private final byte[][] path;
-
- private final Digest digest;
private final LMOtsPublicKey publicKey;
private final Object signature;
+
private LMSSignedPubKey[] signedPubKeys;
+ private volatile Digest digest;
public LMSContext(LMOtsPrivateKey key, LMSigParameters sigParams, Digest digest, byte[] C, byte[][] path)
{
@@ -50,6 +50,8 @@ public LMSContext(LMOtsPublicKey publicKey, Object signature, Digest digest)
digest.doFinal(Q, 0);
+ digest = null;
+
return Q;
}
