summary refs log tree commit diff
path: root/crypto/src/pqc
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2022-07-08 15:36:28 +1000
committerDavid Hook <dgh@cryptoworkshop.com>2022-07-08 15:36:28 +1000
commit5ae703e549162d1c71c83fa45550b79fe143f2c0 (patch)
treeb9274177cd099dcc3a5a8e541dbca11827f49794 /crypto/src/pqc
parentmodified parameters to ensure thread safety (diff)
downloadBouncyCastle.NET-ed25519-5ae703e549162d1c71c83fa45550b79fe143f2c0.tar.xz
modified parameters to ensure thread safety
Diffstat (limited to 'crypto/src/pqc')
-rw-r--r--crypto/src/pqc/crypto/picnic/PicnicParameters.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/pqc/crypto/picnic/PicnicParameters.cs b/crypto/src/pqc/crypto/picnic/PicnicParameters.cs
index ed03e92c7..7dbd890e7 100644
--- a/crypto/src/pqc/crypto/picnic/PicnicParameters.cs
+++ b/crypto/src/pqc/crypto/picnic/PicnicParameters.cs
@@ -21,13 +21,13 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic
         public static PicnicParameters picnicl5full = new PicnicParameters("picnicl5full", 12);
 
         private String name;
-        private PicnicEngine engine;
+        private int param;
 
         //todo make private
         public PicnicParameters(String name, int param)
         {
             this.name = name;
-            this.engine = new PicnicEngine(param);
+            this.param = param;
         }
 
         public String GetName()
@@ -35,9 +35,9 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic
             return name;
         }
 
-        public PicnicEngine GetEngine()
+        internal PicnicEngine GetEngine()
         {
-            return engine;
+            return new PicnicEngine(param);
         }
     }
 }
\ No newline at end of file