summary refs log tree commit diff
path: root/crypto/src/pqc
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-23 22:47:12 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-23 22:47:12 +0700
commit6d150d98edd0abd4d0c9df966681d2b6a0defe38 (patch)
tree289f6c5a6d09f92867c349a9fbd97a54a4ebdbc5 /crypto/src/pqc
parentInitial merge of PQC port (diff)
downloadBouncyCastle.NET-ed25519-6d150d98edd0abd4d0c9df966681d2b6a0defe38.tar.xz
Replace Assembly.GetExecutingAssembly calls
Diffstat (limited to 'crypto/src/pqc')
-rw-r--r--crypto/src/pqc/crypto/picnic/LowmcConstants.cs13
1 files changed, 4 insertions, 9 deletions
diff --git a/crypto/src/pqc/crypto/picnic/LowmcConstants.cs b/crypto/src/pqc/crypto/picnic/LowmcConstants.cs
index e52ed1feb..8e56ee568 100644
--- a/crypto/src/pqc/crypto/picnic/LowmcConstants.cs
+++ b/crypto/src/pqc/crypto/picnic/LowmcConstants.cs
@@ -2,7 +2,7 @@ using System;
 using System.Collections.Generic;
 using System.IO;
 using System.Reflection;
-using System.Text;
+
 using Org.BouncyCastle.Crypto.Utilities;
 using Org.BouncyCastle.Pqc.Crypto.Picnic;
 using Org.BouncyCastle.Utilities.Encoders;
@@ -18,10 +18,9 @@ public sealed class LowmcConstants
     private LowmcConstants()
     {
         _matrixToHex = new Dictionary<string, string>(); 
-        Stream input = Assembly.GetExecutingAssembly()
+        Stream input = typeof(LowmcConstants).Assembly
             .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.picnic.lowmcconstants.properties");
 
-        // string[] testlist = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames();
         using (StreamReader sr = new StreamReader(input))
         {
             // load a properties file
@@ -42,7 +41,6 @@ public sealed class LowmcConstants
 
                 line = sr.ReadLine();
             }
-
         }
         
         linearMatrices_L1 = ReadFromProperty("linearMatrices_L1", 40960);
@@ -102,13 +100,10 @@ public sealed class LowmcConstants
 
     public static LowmcConstants Instance
     {
-        get
-        {
-            return instance;
-        }
+        get { return instance; }
     }
 
-    private static Dictionary<String, String> _matrixToHex;
+    private static Dictionary<string, string> _matrixToHex;
 
     // Parameters for security level L1
     // Block/key size: 128