diff options
author | David Hook <david.hook@keyfactor.com> | 2022-11-07 17:38:55 +1100 |
---|---|---|
committer | David Hook <david.hook@keyfactor.com> | 2022-11-07 17:38:55 +1100 |
commit | 69df93393c6d28a6ea17f0015834a2eda3e52dda (patch) | |
tree | 2de9f73d1b59b3b1ff79b1e13f1cbf3cfcc35c2b /crypto/test/src | |
parent | Merge branch 'master' of gitlab.cryptoworkshop.com:root/bc-csharp (diff) | |
download | BouncyCastle.NET-ed25519-69df93393c6d28a6ea17f0015834a2eda3e52dda.tar.xz |
fixed use of property
Diffstat (limited to 'crypto/test/src')
-rw-r--r-- | crypto/test/src/pqc/crypto/test/CmceVectorTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/test/src/pqc/crypto/test/CmceVectorTest.cs b/crypto/test/src/pqc/crypto/test/CmceVectorTest.cs index eefdd96df..e6b4d120c 100644 --- a/crypto/test/src/pqc/crypto/test/CmceVectorTest.cs +++ b/crypto/test/src/pqc/crypto/test/CmceVectorTest.cs @@ -103,8 +103,8 @@ namespace Org.BouncyCastle.Pqc.Crypto.Tests CmcePublicKeyParameters pubParams = (CmcePublicKeyParameters)PublicKeyFactory.CreateKey(SubjectPublicKeyInfoFactory.CreateSubjectPublicKeyInfo((CmcePublicKeyParameters)kp.Public)); CmcePrivateKeyParameters privParams = (CmcePrivateKeyParameters)PrivateKeyFactory.CreateKey(PrivateKeyInfoFactory.CreatePrivateKeyInfo((CmcePrivateKeyParameters)kp.Private)); - Assert.True(Arrays.AreEqual(pk, pubParams.PublicKey), name + " " + count + ": public key"); - Assert.True(Arrays.AreEqual(sk, privParams.PrivateKey), name + " " + count + ": secret key"); + Assert.True(Arrays.AreEqual(pk, pubParams.GetPublicKey()), name + " " + count + ": public key"); + Assert.True(Arrays.AreEqual(sk, privParams.GetPrivateKey()), name + " " + count + ": secret key"); // KEM Enc CmceKemGenerator CmceEncCipher = new CmceKemGenerator(random); |