diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-03-27 17:24:04 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-03-27 17:24:04 +0700 |
commit | d1a2782503a4eb67da62527ff08132d0cc87ab77 (patch) | |
tree | d73e841f96f422e9f78aab238cd60795c605661e /crypto/src/x509/X509V2AttributeCertificate.cs | |
parent | Rework SIgnedPublicKeyAndChallenge (diff) | |
download | BouncyCastle.NET-ed25519-d1a2782503a4eb67da62527ff08132d0cc87ab77.tar.xz |
Refactoring
Diffstat (limited to 'crypto/src/x509/X509V2AttributeCertificate.cs')
-rw-r--r-- | crypto/src/x509/X509V2AttributeCertificate.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/x509/X509V2AttributeCertificate.cs b/crypto/src/x509/X509V2AttributeCertificate.cs index 84bf0db54..626d14572 100644 --- a/crypto/src/x509/X509V2AttributeCertificate.cs +++ b/crypto/src/x509/X509V2AttributeCertificate.cs @@ -161,6 +161,7 @@ namespace Org.BouncyCastle.X509 return cert.GetSignatureOctets(); } + // TODO[api] Rename 'key' to 'publicKey' public virtual bool IsSignatureValid(AsymmetricKeyParameter key) { return CheckSignatureValid(new Asn1VerifierFactory(cert.SignatureAlgorithm, key)); @@ -171,6 +172,7 @@ namespace Org.BouncyCastle.X509 return CheckSignatureValid(verifierProvider.CreateVerifierFactory(cert.SignatureAlgorithm)); } + // TODO[api] Rename 'key' to 'publicKey' public virtual void Verify(AsymmetricKeyParameter key) { CheckSignature(new Asn1VerifierFactory(cert.SignatureAlgorithm, key)); |