From 80386f4bab559e62fbdd5dbcf4037945d1e4194d Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 13 Dec 2023 01:24:13 +0700 Subject: Add TODOs --- crypto/src/crypto/ISigner.cs | 5 +++++ crypto/src/pqc/crypto/IMessageSigner.cs | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/crypto/src/crypto/ISigner.cs b/crypto/src/crypto/ISigner.cs index 0e2851304..49b7e6406 100644 --- a/crypto/src/crypto/ISigner.cs +++ b/crypto/src/crypto/ISigner.cs @@ -35,6 +35,11 @@ namespace Org.BouncyCastle.Crypto /// A byte array containing the signature for the message. byte[] GenerateSignature(); +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + // TODO[api] + //int GenerateSignature(Span output); +#endif + /// Return true if the internal state represents the signature described in the passed in array. /// /// an array containing the candidate signature to verify. diff --git a/crypto/src/pqc/crypto/IMessageSigner.cs b/crypto/src/pqc/crypto/IMessageSigner.cs index cef23898c..fdf3a1009 100644 --- a/crypto/src/pqc/crypto/IMessageSigner.cs +++ b/crypto/src/pqc/crypto/IMessageSigner.cs @@ -10,15 +10,28 @@ namespace Org.BouncyCastle.Pqc.Crypto /// parameters for signature generation or verification. void Init(bool forSigning, ICipherParameters param); + // TODO[api] + //int GetMaxSignatureSize(); + /// Sign a message. /// the message to be signed. /// the signature of the message. byte[] GenerateSignature(byte[] message); +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + // TODO[api] + //int GenerateSignature(Span output); +#endif + /// Verify a purported signature for a message. /// the message supposedly signed. /// the purported signature to verify. /// true if and only if the signature verified against the message. bool VerifySignature(byte[] message, byte[] signature); + +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + // TODO[api] + //bool VerifySignature(ReadOnlySpan message, ReadOnlySpan signature); +#endif } } -- cgit 1.4.1