summary refs log tree commit diff
path: root/crypto/test/src/test/PKCS10CertRequestTest.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2015-11-10 19:13:38 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2015-11-10 19:13:38 +0700
commitc4f02c22b53e19a2445ee13865dc5e0e04c84359 (patch)
treee623a07c462c95883a661439dfe188a980b52c7d /crypto/test/src/test/PKCS10CertRequestTest.cs
parentAdd more PkiFailureInfo constants (diff)
downloadBouncyCastle.NET-ed25519-c4f02c22b53e19a2445ee13865dc5e0e04c84359.tar.xz
Add BerBitString and improve "unused bit" handling
Diffstat (limited to '')
-rw-r--r--crypto/test/src/test/PKCS10CertRequestTest.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/test/src/test/PKCS10CertRequestTest.cs b/crypto/test/src/test/PKCS10CertRequestTest.cs

index 819439cd8..ba62db32f 100644 --- a/crypto/test/src/test/PKCS10CertRequestTest.cs +++ b/crypto/test/src/test/PKCS10CertRequestTest.cs
@@ -210,7 +210,7 @@ namespace Org.BouncyCastle.Tests byte[] b = req.GetCertificationRequestInfo().GetEncoded(); sig.BlockUpdate(b, 0, b.Length); - if (!sig.VerifySignature(req.Signature.GetBytes())) + if (!sig.VerifySignature(req.GetSignatureOctets())) { Fail("signature not mapped correctly."); } @@ -264,7 +264,7 @@ namespace Org.BouncyCastle.Tests byte[] b = req.GetCertificationRequestInfo().GetEncoded(); sig.BlockUpdate(b, 0, b.Length); - if (!sig.VerifySignature(req.Signature.GetBytes())) + if (!sig.VerifySignature(req.GetSignatureOctets())) { Fail("signature not mapped correctly."); } @@ -325,7 +325,7 @@ namespace Org.BouncyCastle.Tests byte[] encoded = req.GetCertificationRequestInfo().GetEncoded(); sig.BlockUpdate(encoded, 0, encoded.Length); - if (!sig.VerifySignature(req.Signature.GetBytes())) + if (!sig.VerifySignature(req.GetSignatureOctets())) { Fail("signature not mapped correctly."); }