From 5ac3da6178a1c110f8a6d586fe13c6b87915e492 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Tue, 11 Apr 2023 18:11:33 +0700 Subject: Add some API TODOs --- crypto/src/crypto/ISigner.cs | 5 +++++ crypto/src/crypto/IVerifier.cs | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/crypto/src/crypto/ISigner.cs b/crypto/src/crypto/ISigner.cs index 238ed5176..0e2851304 100644 --- a/crypto/src/crypto/ISigner.cs +++ b/crypto/src/crypto/ISigner.cs @@ -41,6 +41,11 @@ namespace Org.BouncyCastle.Crypto /// true if the internal state represents the signature described in the passed in array. bool VerifySignature(byte[] signature); +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + // TODO[api] + //bool VerifySignature(ReadOnlySpan signature); +#endif + /// Reset the signer back to its initial state. void Reset(); } diff --git a/crypto/src/crypto/IVerifier.cs b/crypto/src/crypto/IVerifier.cs index 560cabf8e..5e80b55d5 100644 --- a/crypto/src/crypto/IVerifier.cs +++ b/crypto/src/crypto/IVerifier.cs @@ -1,4 +1,6 @@ -namespace Org.BouncyCastle.Crypto +using System; + +namespace Org.BouncyCastle.Crypto { /// /// Operators that reduce their input to the validation of a signature produce this type. @@ -21,5 +23,10 @@ /// The number of bytes in source making up the signature. /// true if the signature verifies, false otherwise. bool IsVerified(byte[] source, int off, int length); + +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + // TODO[api] + //bool IsVerified(ReadOnlySpan data); +#endif } } -- cgit 1.4.1