forked from I2P_Developers/i2p.i2p
Crypto: EdDSA precedence fix
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user