diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-11 18:11:33 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-04-11 18:11:33 +0700 |
commit | 5ac3da6178a1c110f8a6d586fe13c6b87915e492 (patch) | |
tree | 665c2b755b82cb97fff084c3ad89c2777829879d /crypto | |
parent | Platform guards for ReadOnlySet<T> (diff) | |
download | BouncyCastle.NET-ed25519-5ac3da6178a1c110f8a6d586fe13c6b87915e492.tar.xz |
Add some API TODOs
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/crypto/ISigner.cs | 5 | ||||
-rw-r--r-- | crypto/src/crypto/IVerifier.cs | 9 |
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 } } |