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

Org.BouncyCastle.Crypto.Signers.PlainDsaEncoding

namespace Org.BouncyCastle.Crypto.Signers { public class PlainDsaEncoding : IDsaEncoding { public static readonly PlainDsaEncoding 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, byte[] buf, int off, int len); protected virtual void EncodeValue(BigInteger n, BigInteger x, byte[] buf, int off, int len); public PlainDsaEncoding(); } }