removed unnecessary of ParametersWithRandom
import org.bouncycastle.crypto.CipherParameters;
import org.bouncycastle.crypto.Digest;
import org.bouncycastle.crypto.digests.SHA512Digest;
-import org.bouncycastle.crypto.params.ParametersWithRandom;
import org.bouncycastle.pqc.crypto.picnic.PicnicSigner;
import org.bouncycastle.util.Arrays;
import org.bouncycastle.util.Pack;
@@ -63,15 +62,8 @@ protected void engineInitSign(PrivateKey privateKey)
BCPicnicPrivateKey key = (BCPicnicPrivateKey)privateKey;
CipherParameters param = key.getKeyParams();
digest.reset();
- if (random != null)
- {
- signer.init(true, new ParametersWithRandom(param, random));
- }
- else
- {
signer.init(true, param);
}
- }
else
{
throw new InvalidKeyException("unknown private key passed to Picnic");
