public interface DSAEncoding
Modifier and Type | Method and Description |
---|---|
BigInteger[] |
decode(BigInteger n,
byte[] encoding)
Decode the (r, s) pair of a DSA signature.
|
byte[] |
encode(BigInteger n,
BigInteger r,
BigInteger s)
Encode the (r, s) pair of a DSA signature.
|
BigInteger[] decode(BigInteger n, byte[] encoding) throws IOException
n
- the order of the group that r, s belong to.encoding
- an encoding of the (r, s) pair of a DSA signature.IOException
byte[] encode(BigInteger n, BigInteger r, BigInteger s) throws IOException
n
- the order of the group that r, s belong to.r
- the r value of a DSA signature.s
- the s value of a DSA signature.IOException
Copyright © 2021 BouncyCastle.org. All rights reserved.