public class DSSSignatureRawCodec extends java.lang.Object implements ISignatureCodec
An object that implements the ISignatureCodec operations for the
Raw format to use with DSS signatures.
RAW_FORMAT| Constructor and Description |
|---|
DSSSignatureRawCodec() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
decodeSignature(byte[] k) |
byte[] |
encodeSignature(java.lang.Object signature)
Returns the encoded form of the designated DSS (Digital Signature
Standard) signature object according to the Raw format supported by
this library.
|
int |
getFormatID() |
public int getFormatID()
getFormatID in interface ISignatureCodecpublic byte[] encodeSignature(java.lang.Object signature)
Returns the encoded form of the designated DSS (Digital Signature Standard) signature object according to the Raw format supported by this library.
The Raw format for a DSA signature, in this implementation, is a byte sequence consisting of the following:
Registry.MAGIC_RAW_DSS_SIGNATURE,r in internet order,BigInteger obtained by invoking
the toByteArray() method on the DSS parameter r,s,BigInteger obtained by invoking
the toByteArray() method on the DSS parameter s.encodeSignature in interface ISignatureCodecsignature - the signature to encode, consisting of the two DSS
parameters r and s as a BigInteger
array.java.lang.IllegalArgumentException - if the designated signature is not a
DSS (Digital Signature Standard) one.public java.lang.Object decodeSignature(byte[] k)
decodeSignature in interface ISignatureCodecCopyright © 2025. All rights reserved.