gnu.crypto.sig.dss
public class DSSSignatureRawCodec extends Object implements ISignatureCodec
An object that implements the ISignatureCodec operations for the Raw format to use with DSS signatures.
Version: $Revision: 1.5 $
Method Summary | |
---|---|
Object | decodeSignature(byte[] k) |
byte[] | encodeSignature(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:
|
int | getFormatID() |
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:
r
in internet order,toByteArray()
method on the DSS parameter r
,s
,toByteArray()
method on the DSS parameter s
.Parameters: signature the signature to encode, consisting of the two DSS
parameters r
and s
as a java.math.BigInteger
array.
Returns: the Raw format encoding of the designated signature.
Throws: IllegalArgumentException if the designated signature is not a DSS (Digital Signature Standard) one.