#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
#pragma warning disable
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Signers
{
///
/// An interface for different encoding formats for DSA signatures.
///
public interface IDsaEncoding
{
/// Decode the (r, s) pair of a DSA signature.
/// The order of the group that r, s belong to.
/// An encoding of the (r, s) pair of a DSA signature.
/// The (r, s) of a DSA signature, stored in an array of exactly two elements, r followed by s.
BigInteger[] Decode(BigInteger n, byte[] encoding);
/// Encode the (r, s) pair of a DSA signature.
/// The order of the group that r, s belong to.
/// The r value of a DSA signature.
/// The s value of a DSA signature.
/// An encoding of the DSA signature given by the provided (r, s) pair.
byte[] Encode(BigInteger n, BigInteger r, BigInteger s);
}
}
#pragma warning restore
#endif