diff options
author | David Hook <dgh@cryptoworkshop.com> | 2022-08-21 21:46:52 +1000 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2022-08-21 21:46:52 +1000 |
commit | 1b88e8476e6823671766ad5c7e30aaff24fd13b6 (patch) | |
tree | 5f691199d9c63b8071e892320f3aa954318e6420 /crypto/test/src | |
parent | added key size restrictions (diff) | |
download | BouncyCastle.NET-ed25519-1b88e8476e6823671766ad5c7e30aaff24fd13b6.tar.xz |
SIKE: added warning, keysize test
Diffstat (limited to 'crypto/test/src')
-rw-r--r-- | crypto/test/src/pqc/crypto/test/SikeVectorTest.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs b/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs index 951b3349b..8b7707bd4 100644 --- a/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs +++ b/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs @@ -113,9 +113,10 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests byte[] dec_key = sikeDecCipher.ExtractSecret(generated_cipher_text); -// System.out.println(Hex.toHexString(dec_key).toUpperCase()); -// System.out.println(Hex.toHexString(ss).toUpperCase()); + // System.out.println(Hex.toHexString(dec_key).toUpperCase()); + // System.out.println(Hex.toHexString(ss).toUpperCase()); + Assert.True(SIKEParameters.DefaultKeySize == dec_key.Length * 8); Assert.True(Arrays.AreEqual(dec_key, ss), name + " " + count + ": kem_dec ss" ); Assert.True(Arrays.AreEqual(dec_key, secret), name + " " + count + ": kem_dec key" ); |