From 4a8aa663d7ca9e049a5682990728019898e4fabf Mon Sep 17 00:00:00 2001 From: David Hook Date: Fri, 8 Jul 2022 21:13:40 +1000 Subject: thread safety fix --- crypto/src/pqc/crypto/picnic/PicnicEngine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/src') 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; } -- cgit 1.5.1