Add some API TODOs
2 files changed, 13 insertions, 1 deletions
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
/// <returns>true if the internal state represents the signature described in the passed in array.</returns>
bool VerifySignature(byte[] signature);
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+ // TODO[api]
+ //bool VerifySignature(ReadOnlySpan<byte> signature);
+#endif
+
/// <summary>Reset the signer back to its initial state.</summary>
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
{
/// <summary>
/// Operators that reduce their input to the validation of a signature produce this type.
@@ -21,5 +23,10 @@
/// <param name="length">The number of bytes in source making up the signature.</param>
/// <returns>true if the signature verifies, false otherwise.</returns>
bool IsVerified(byte[] source, int off, int length);
+
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+ // TODO[api]
+ //bool IsVerified(ReadOnlySpan<byte> data);
+#endif
}
}
|