summary refs log tree commit diff
path: root/crypto/src/crypto/signers/IDsaEncoding.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crypto/signers/IDsaEncoding.cs')
-rw-r--r--crypto/src/crypto/signers/IDsaEncoding.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/src/crypto/signers/IDsaEncoding.cs b/crypto/src/crypto/signers/IDsaEncoding.cs
index cccc4f937..8960445cf 100644
--- a/crypto/src/crypto/signers/IDsaEncoding.cs
+++ b/crypto/src/crypto/signers/IDsaEncoding.cs
@@ -21,5 +21,11 @@ namespace Org.BouncyCastle.Crypto.Signers
         /// <param name="s">The s value of a DSA signature.</param>
         /// <returns>An encoding of the DSA signature given by the provided (r, s) pair.</returns>
         byte[] Encode(BigInteger n, BigInteger r, BigInteger s);
+
+#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER
+        int Encode(BigInteger n, BigInteger r, BigInteger s, Span<byte> output);
+#endif
+
+        int GetMaxEncodingSize(BigInteger n);
     }
 }