summary refs log tree commit diff
path: root/crypto/src/x509/X509SignatureUtil.cs
diff options
context:
space:
mode:
authorOren Novotny <oren@novotny.org>2015-11-22 12:52:48 -0500
committerOren Novotny <oren@novotny.org>2015-11-22 12:52:48 -0500
commitc2bc6d18b888c0a3d3d1177e7c049f042dcae3ac (patch)
tree5d2da28f9361f54df868f0d8a4865ca57ae73c6b /crypto/src/x509/X509SignatureUtil.cs
parentupdate build script (diff)
parentMerge branch 'master' of git.bouncycastle.org:bc-csharp into pcl (diff)
downloadBouncyCastle.NET-ed25519-c2bc6d18b888c0a3d3d1177e7c049f042dcae3ac.tar.xz
Merge pull request #14 from peterdettman/pcl
Updates everything to the bc-csharp 1.8.0 release tag
Diffstat (limited to 'crypto/src/x509/X509SignatureUtil.cs')
-rw-r--r--crypto/src/x509/X509SignatureUtil.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/x509/X509SignatureUtil.cs b/crypto/src/x509/X509SignatureUtil.cs

index 7a4ab1448..83863aee1 100644 --- a/crypto/src/x509/X509SignatureUtil.cs +++ b/crypto/src/x509/X509SignatureUtil.cs
@@ -34,7 +34,7 @@ namespace Org.BouncyCastle.X509 // throw new SignatureException("IOException decoding parameters: " + e.Message); // } // -// if (signature.getAlgorithm().EndsWith("MGF1")) +// if (Platform.EndsWith(signature.getAlgorithm(), "MGF1")) // { // try // { @@ -55,13 +55,13 @@ namespace Org.BouncyCastle.X509 if (parameters != null && !derNull.Equals(parameters)) { - if (sigAlgId.ObjectID.Equals(PkcsObjectIdentifiers.IdRsassaPss)) + if (sigAlgId.Algorithm.Equals(PkcsObjectIdentifiers.IdRsassaPss)) { RsassaPssParameters rsaParams = RsassaPssParameters.GetInstance(parameters); - return GetDigestAlgName(rsaParams.HashAlgorithm.ObjectID) + "withRSAandMGF1"; + return GetDigestAlgName(rsaParams.HashAlgorithm.Algorithm) + "withRSAandMGF1"; } - if (sigAlgId.ObjectID.Equals(X9ObjectIdentifiers.ECDsaWithSha2)) + if (sigAlgId.Algorithm.Equals(X9ObjectIdentifiers.ECDsaWithSha2)) { Asn1Sequence ecDsaParams = Asn1Sequence.GetInstance(parameters); @@ -69,7 +69,7 @@ namespace Org.BouncyCastle.X509 } } - return sigAlgId.ObjectID.Id; + return sigAlgId.Algorithm.Id; } /**