From 1b88e8476e6823671766ad5c7e30aaff24fd13b6 Mon Sep 17 00:00:00 2001 From: David Hook Date: Sun, 21 Aug 2022 21:46:52 +1000 Subject: SIKE: added warning, keysize test --- crypto/test/src/pqc/crypto/test/SikeVectorTest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crypto/test/src') 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" ); -- cgit 1.5.1