I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 6ab5b849 authored by zzz's avatar zzz
Browse files

Crypto: EdDSA precedence fix

parent 981b7082
No related branches found
No related tags found
No related merge requests found
...@@ -426,7 +426,7 @@ public final class EdDSAEngine extends Signature { ...@@ -426,7 +426,7 @@ public final class EdDSAEngine extends Signature {
@Override @Override
protected void engineSetParameter(AlgorithmParameterSpec spec) throws InvalidAlgorithmParameterException { protected void engineSetParameter(AlgorithmParameterSpec spec) throws InvalidAlgorithmParameterException {
if (spec.equals(ONE_SHOT_MODE)) { if (spec.equals(ONE_SHOT_MODE)) {
if (oneShotBytes != null || baos != null && baos.size() > 0) if (oneShotBytes != null || (baos != null && baos.size() > 0))
throw new InvalidAlgorithmParameterException("update() already called"); throw new InvalidAlgorithmParameterException("update() already called");
oneShotMode = true; oneShotMode = true;
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment