public class ECDSASignature extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
BigInteger |
r
The two components of the signature.
|
BigInteger |
s
The two components of the signature.
|
| 构造器和说明 |
|---|
ECDSASignature(BigInteger r,
BigInteger s)
Constructs a signature with the given components.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
checkIsCanonical(byte[] sig,
boolean strict) |
static ECDSASignature |
decodeFromDER(byte[] bytes) |
protected ByteArrayOutputStream |
derByteStream() |
byte[] |
encodeToDER()
DER is an international standard for serializing data structures which is widely used in cryptography.
|
static boolean |
isStrictlyCanonical(byte[] sig) |
public BigInteger r
public BigInteger s
public ECDSASignature(BigInteger r, BigInteger s)
r - rs - spublic static boolean isStrictlyCanonical(byte[] sig)
sig - Sig.public static boolean checkIsCanonical(byte[] sig,
boolean strict)
sig - sig.strict - strict.public byte[] encodeToDER()
public static ECDSASignature decodeFromDER(byte[] bytes)
bytes - byte array.protected ByteArrayOutputStream derByteStream() throws IOException
IOExceptionCopyright © 2021. All rights reserved.