public class StandardDSAEncoding extends java.lang.Object implements DSAEncoding
| Modifier and Type | Field and Description |
|---|---|
static StandardDSAEncoding |
INSTANCE |
| Constructor and Description |
|---|
StandardDSAEncoding() |
| Modifier and Type | Method and Description |
|---|---|
protected java.math.BigInteger |
checkValue(java.math.BigInteger n,
java.math.BigInteger x) |
java.math.BigInteger[] |
decode(java.math.BigInteger n,
byte[] encoding)
Decode the (r, s) pair of a DSA signature.
|
protected java.math.BigInteger |
decodeValue(java.math.BigInteger n,
ASN1Sequence s,
int pos) |
byte[] |
encode(java.math.BigInteger n,
java.math.BigInteger r,
java.math.BigInteger s)
Encode the (r, s) pair of a DSA signature.
|
protected void |
encodeValue(java.math.BigInteger n,
ASN1EncodableVector v,
java.math.BigInteger x) |
public static final StandardDSAEncoding INSTANCE
public byte[] encode(java.math.BigInteger n,
java.math.BigInteger r,
java.math.BigInteger s)
throws java.io.IOException
DSAEncodingencode in interface DSAEncodingn - 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.java.io.IOExceptionpublic java.math.BigInteger[] decode(java.math.BigInteger n,
byte[] encoding)
throws java.io.IOException
DSAEncodingdecode in interface DSAEncodingn - the order of the group that r, s belong to.encoding - an encoding of the (r, s) pair of a DSA signature.java.io.IOExceptionprotected java.math.BigInteger checkValue(java.math.BigInteger n,
java.math.BigInteger x)
protected java.math.BigInteger decodeValue(java.math.BigInteger n,
ASN1Sequence s,
int pos)
protected void encodeValue(java.math.BigInteger n,
ASN1EncodableVector v,
java.math.BigInteger x)