diff options
author | Petar Petrov <ppetrov@david.bg> | 2023-01-21 14:46:00 +0200 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-16 12:42:49 +0700 |
commit | cc4833aa7e86d9f031c3b113c0fcdb2300b46687 (patch) | |
tree | 53832391aca0816978dce76a21f7fbee0f88b454 | |
parent | Use DoesNotReturnAttribute (diff) | |
download | BouncyCastle.NET-ed25519-cc4833aa7e86d9f031c3b113c0fcdb2300b46687.tar.xz |
Compress PQC embedded resources.
-rw-r--r-- | crypto/src/pqc/crypto/picnic/LowmcConstantsL1.cs | 4 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/picnic/LowmcConstantsL3.cs | 4 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/picnic/LowmcConstantsL5.cs | 4 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/picnic/lowmcL1.properties | bin | 361616 -> 118150 bytes | |||
-rw-r--r-- | crypto/src/pqc/crypto/picnic/lowmcL3.properties | bin | 1039402 -> 351284 bytes | |||
-rw-r--r-- | crypto/src/pqc/crypto/picnic/lowmcL5.properties | bin | 2239258 -> 760466 bytes | |||
-rw-r--r-- | crypto/src/pqc/crypto/sike/P434.cs | 4 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/sike/P503.cs | 4 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/sike/P610.cs | 4 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/sike/P751.cs | 4 | ||||
-rw-r--r-- | crypto/src/pqc/crypto/sike/p434.properties | bin | 662924 -> 332502 bytes | |||
-rw-r--r-- | crypto/src/pqc/crypto/sike/p503.properties | bin | 765399 -> 391441 bytes | |||
-rw-r--r-- | crypto/src/pqc/crypto/sike/p610.properties | bin | 1154869 -> 575205 bytes | |||
-rw-r--r-- | crypto/src/pqc/crypto/sike/p751.properties | bin | 1939925 -> 981767 bytes |
14 files changed, 21 insertions, 7 deletions
diff --git a/crypto/src/pqc/crypto/picnic/LowmcConstantsL1.cs b/crypto/src/pqc/crypto/picnic/LowmcConstantsL1.cs index 31bc90865..d52d6bd19 100644 --- a/crypto/src/pqc/crypto/picnic/LowmcConstantsL1.cs +++ b/crypto/src/pqc/crypto/picnic/LowmcConstantsL1.cs @@ -1,3 +1,4 @@ +using Org.BouncyCastle.Utilities.IO.Compression; using System.Collections.Generic; using System.IO; @@ -11,7 +12,8 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic _matrixToHex = new Dictionary<string, string>(); Stream input = typeof(LowmcConstants).Assembly .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.picnic.lowmcL1.properties"); - + input = Bzip2.DecompressInput(input); + using (StreamReader sr = new StreamReader(input)) { // load a properties file diff --git a/crypto/src/pqc/crypto/picnic/LowmcConstantsL3.cs b/crypto/src/pqc/crypto/picnic/LowmcConstantsL3.cs index 98adba36c..1c8b7461f 100644 --- a/crypto/src/pqc/crypto/picnic/LowmcConstantsL3.cs +++ b/crypto/src/pqc/crypto/picnic/LowmcConstantsL3.cs @@ -1,3 +1,4 @@ +using Org.BouncyCastle.Utilities.IO.Compression; using System.Collections.Generic; using System.IO; @@ -11,7 +12,8 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic _matrixToHex = new Dictionary<string, string>(); Stream input = typeof(LowmcConstants).Assembly .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.picnic.lowmcL3.properties"); - + input = Bzip2.DecompressInput(input); + using (StreamReader sr = new StreamReader(input)) { // load a properties file diff --git a/crypto/src/pqc/crypto/picnic/LowmcConstantsL5.cs b/crypto/src/pqc/crypto/picnic/LowmcConstantsL5.cs index ef506c713..70662d1ca 100644 --- a/crypto/src/pqc/crypto/picnic/LowmcConstantsL5.cs +++ b/crypto/src/pqc/crypto/picnic/LowmcConstantsL5.cs @@ -1,3 +1,4 @@ +using Org.BouncyCastle.Utilities.IO.Compression; using System.Collections.Generic; using System.IO; @@ -12,7 +13,8 @@ namespace Org.BouncyCastle.Pqc.Crypto.Picnic _matrixToHex = new Dictionary<string, string>(); Stream input = typeof(LowmcConstants).Assembly .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.picnic.lowmcL5.properties"); - + input = Bzip2.DecompressInput(input); + using (StreamReader sr = new StreamReader(input)) { // load a properties file diff --git a/crypto/src/pqc/crypto/picnic/lowmcL1.properties b/crypto/src/pqc/crypto/picnic/lowmcL1.properties index 01c218736..a9aea9bc2 100644 --- a/crypto/src/pqc/crypto/picnic/lowmcL1.properties +++ b/crypto/src/pqc/crypto/picnic/lowmcL1.properties Binary files differdiff --git a/crypto/src/pqc/crypto/picnic/lowmcL3.properties b/crypto/src/pqc/crypto/picnic/lowmcL3.properties index 8045892a7..e5f3ccb1f 100644 --- a/crypto/src/pqc/crypto/picnic/lowmcL3.properties +++ b/crypto/src/pqc/crypto/picnic/lowmcL3.properties Binary files differdiff --git a/crypto/src/pqc/crypto/picnic/lowmcL5.properties b/crypto/src/pqc/crypto/picnic/lowmcL5.properties index 17aed124e..30e0db747 100644 --- a/crypto/src/pqc/crypto/picnic/lowmcL5.properties +++ b/crypto/src/pqc/crypto/picnic/lowmcL5.properties Binary files differdiff --git a/crypto/src/pqc/crypto/sike/P434.cs b/crypto/src/pqc/crypto/sike/P434.cs index bcad9e970..d5114bc83 100644 --- a/crypto/src/pqc/crypto/sike/P434.cs +++ b/crypto/src/pqc/crypto/sike/P434.cs @@ -1,3 +1,4 @@ +using Org.BouncyCastle.Utilities.IO.Compression; using System.Collections.Generic; using System.IO; @@ -113,7 +114,8 @@ internal class P434 var props = new Dictionary<string, string>(); Stream input = typeof(P434).Assembly .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.sike.p434.properties"); - + input = Bzip2.DecompressInput(input); + using (StreamReader sr = new StreamReader(input)) { int i = 0; diff --git a/crypto/src/pqc/crypto/sike/P503.cs b/crypto/src/pqc/crypto/sike/P503.cs index 893dfd272..428bfd791 100644 --- a/crypto/src/pqc/crypto/sike/P503.cs +++ b/crypto/src/pqc/crypto/sike/P503.cs @@ -1,3 +1,4 @@ +using Org.BouncyCastle.Utilities.IO.Compression; using System.Collections.Generic; using System.IO; @@ -149,7 +150,8 @@ namespace Org.BouncyCastle.Pqc.Crypto.Sike var props = new Dictionary<string, string>(); Stream input = typeof(P503).Assembly .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.sike.p503.properties"); - + input = Bzip2.DecompressInput(input); + using (StreamReader sr = new StreamReader(input)) { // load a properties file diff --git a/crypto/src/pqc/crypto/sike/P610.cs b/crypto/src/pqc/crypto/sike/P610.cs index 5ad57827c..c31709ef6 100644 --- a/crypto/src/pqc/crypto/sike/P610.cs +++ b/crypto/src/pqc/crypto/sike/P610.cs @@ -1,3 +1,4 @@ +using Org.BouncyCastle.Utilities.IO.Compression; using System.Collections.Generic; using System.IO; @@ -149,7 +150,8 @@ namespace Org.BouncyCastle.Pqc.Crypto.Sike var props = new Dictionary<string, string>(); Stream input = typeof(P610).Assembly .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.sike.p610.properties"); - + input = Bzip2.DecompressInput(input); + using (StreamReader sr = new StreamReader(input)) { // load a properties file diff --git a/crypto/src/pqc/crypto/sike/P751.cs b/crypto/src/pqc/crypto/sike/P751.cs index e4d802ad5..97359e1c0 100644 --- a/crypto/src/pqc/crypto/sike/P751.cs +++ b/crypto/src/pqc/crypto/sike/P751.cs @@ -1,3 +1,4 @@ +using Org.BouncyCastle.Utilities.IO.Compression; using System.Collections.Generic; using System.IO; @@ -162,7 +163,8 @@ namespace Org.BouncyCastle.Pqc.Crypto.Sike var props = new Dictionary<string, string>(); Stream input = typeof(P751).Assembly .GetManifestResourceStream("Org.BouncyCastle.pqc.crypto.sike.p751.properties"); - + input = Bzip2.DecompressInput(input); + using (StreamReader sr = new StreamReader(input)) { // load a properties file diff --git a/crypto/src/pqc/crypto/sike/p434.properties b/crypto/src/pqc/crypto/sike/p434.properties index 25b918f34..f2bca0c13 100644 --- a/crypto/src/pqc/crypto/sike/p434.properties +++ b/crypto/src/pqc/crypto/sike/p434.properties Binary files differdiff --git a/crypto/src/pqc/crypto/sike/p503.properties b/crypto/src/pqc/crypto/sike/p503.properties index 8cd4e76ac..492e9b2c2 100644 --- a/crypto/src/pqc/crypto/sike/p503.properties +++ b/crypto/src/pqc/crypto/sike/p503.properties Binary files differdiff --git a/crypto/src/pqc/crypto/sike/p610.properties b/crypto/src/pqc/crypto/sike/p610.properties index 468de9a6a..4a05c4b26 100644 --- a/crypto/src/pqc/crypto/sike/p610.properties +++ b/crypto/src/pqc/crypto/sike/p610.properties Binary files differdiff --git a/crypto/src/pqc/crypto/sike/p751.properties b/crypto/src/pqc/crypto/sike/p751.properties index 1ff1e0382..b50b940b0 100644 --- a/crypto/src/pqc/crypto/sike/p751.properties +++ b/crypto/src/pqc/crypto/sike/p751.properties Binary files differ |