diff options
author | David Hook <dgh@cryptoworkshop.com> | 2022-07-08 15:36:28 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2022-07-08 15:36:28 +1000 |
commit | 5ae703e549162d1c71c83fa45550b79fe143f2c0 (patch) | |
tree | b9274177cd099dcc3a5a8e541dbca11827f49794 /crypto/src/pqc | |
parent | modified parameters to ensure thread safety (diff) | |
download | BouncyCastle.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.cs | 8 |
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 |