diff options
author | David Hook <dgh@cryptoworkshop.com> | 2022-07-08 21:13:40 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2022-07-08 21:13:40 +1000 |
commit | 4a8aa663d7ca9e049a5682990728019898e4fabf (patch) | |
tree | e3924793eb6aa996e90566550218d3494b817360 /crypto/src/pqc | |
parent | made constructor private (diff) | |
download | BouncyCastle.NET-ed25519-4a8aa663d7ca9e049a5682990728019898e4fabf.tar.xz |
thread safety fix
Diffstat (limited to 'crypto/src/pqc')
-rw-r--r-- | crypto/src/pqc/crypto/picnic/PicnicEngine.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/pqc/crypto/picnic/PicnicEngine.cs b/crypto/src/pqc/crypto/picnic/PicnicEngine.cs index 57e3a005d..95a7a00d2 100644 --- a/crypto/src/pqc/crypto/picnic/PicnicEngine.cs +++ b/crypto/src/pqc/crypto/picnic/PicnicEngine.cs @@ -32,7 +32,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic protected internal int numMPCParties; // N protected internal int seedSizeBytes; protected internal int digestSizeBytes; - static int pqSecurityLevel; + protected internal int pqSecurityLevel; @@ -1403,7 +1403,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic if (!SubarrayEquals(temp, pubKey, stateSizeWords)) { - Console.Error.Write("Simulation failed; output does not match public key (round = %d)\n", k); + Console.Error.WriteLine("Simulation failed; output does not match public key (round = " + k + ")"); return -1; } |