<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.1" />

Org.BouncyCastle.Crypto.Signers.StandardDsaEncoding

namespace Org.BouncyCastle.Crypto.Signers { public class StandardDsaEncoding : IDsaEncoding { public static readonly StandardDsaEncoding Instance; public virtual BigInteger[] Decode(BigInteger n, byte[] encoding); public virtual byte[] Encode(BigInteger n, BigInteger r, BigInteger s); public virtual int GetMaxEncodingSize(BigInteger n); protected virtual BigInteger CheckValue(BigInteger n, BigInteger x); protected virtual BigInteger DecodeValue(BigInteger n, Asn1Sequence s, int pos); protected virtual DerInteger EncodeValue(BigInteger n, BigInteger x); public StandardDsaEncoding(); } }