public class PlainDSAEncoding extends Object implements DSAEncoding
| Modifier and Type | Field and Description |
|---|---|
static PlainDSAEncoding |
INSTANCE |
| Constructor and Description |
|---|
PlainDSAEncoding() |
| Modifier and Type | Method and Description |
|---|---|
protected BigInteger |
checkValue(BigInteger n,
BigInteger x) |
BigInteger[] |
decode(BigInteger n,
byte[] encoding)
Decode the (r, s) pair of a DSA signature.
|
protected BigInteger |
decodeValue(BigInteger n,
byte[] buf,
int off,
int len) |
byte[] |
encode(BigInteger n,
BigInteger r,
BigInteger s)
Encode the (r, s) pair of a DSA signature.
|
public static final PlainDSAEncoding INSTANCE
public byte[] encode(BigInteger n, BigInteger r, BigInteger s)
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.public BigInteger[] decode(BigInteger n, byte[] encoding)
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.protected BigInteger checkValue(BigInteger n, BigInteger x)
protected BigInteger decodeValue(BigInteger n, byte[] buf, int off, int len)
Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.