diff options
author | Roy Basmacier <roy.basmacier@keyfactor.com> | 2022-07-11 11:18:42 -0400 |
---|---|---|
committer | Roy Basmacier <roy.basmacier@keyfactor.com> | 2022-07-11 11:18:42 -0400 |
commit | 53b3d8e0d1185112150c335d1325a8d8245380ab (patch) | |
tree | 8bd93ba9bd4d4492463de1a079cbfca5ad31d7ed /crypto/test | |
parent | Fixed static problem in Picnic (diff) | |
download | BouncyCastle.NET-ed25519-53b3d8e0d1185112150c335d1325a8d8245380ab.tar.xz |
Added SIKE to PrivateKeyFactory.cs and changed SikeVectorTest.cs
Diffstat (limited to 'crypto/test')
-rw-r--r-- | crypto/test/src/pqc/crypto/test/SikeVectorTest.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs b/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs index af8187a2d..3daac41e5 100644 --- a/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs +++ b/crypto/test/src/pqc/crypto/test/SikeVectorTest.cs @@ -6,6 +6,7 @@ using NUnit.Framework; using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Pqc.Crypto.Sike; +using Org.BouncyCastle.Pqc.Crypto.Utilities; using Org.BouncyCastle.Utilities; using Org.BouncyCastle.Utilities.Encoders; using Org.BouncyCastle.Utilities.Test; @@ -80,11 +81,11 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests AsymmetricCipherKeyPair kp = kpGen.GenerateKeyPair(); // todo - // SIKEPublicKeyParameters pubParams = (SIKEPublicKeyParameters)PublicKeyFactory.CreateKey(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(kp.Public)); - // SIKEPrivateKeyParameters privParams = (SIKEPrivateKeyParameters)PrivateKeyFactory.CreateKey(PrivateKeyInfoFactory.CreatePrivateKeyInfo(kp.Private)); + SIKEPublicKeyParameters pubParams = (SIKEPublicKeyParameters)PublicKeyFactory.CreateKey(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo(kp.Public)); + SIKEPrivateKeyParameters privParams = (SIKEPrivateKeyParameters)PrivateKeyFactory.CreateKey(PrivateKeyInfoFactory.CreatePrivateKeyInfo(kp.Private)); - SIKEPublicKeyParameters pubParams = (SIKEPublicKeyParameters)kp.Public; - SIKEPrivateKeyParameters privParams = (SIKEPrivateKeyParameters)kp.Private; + // SIKEPublicKeyParameters pubParams = (SIKEPublicKeyParameters)kp.Public; + // SIKEPrivateKeyParameters privParams = (SIKEPrivateKeyParameters)kp.Private; // Console.WriteLine(Hex.ToHexString(pk)); // Console.WriteLine(Hex.ToHexString(pubParams.GetEncoded())); |