|
For the latest news and information visit The GNU Crypto project |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--gnu.crypto.sig.dss.DSSSignatureRawCodec
An object that implements the ISignatureCodec
operations for the Raw format to use with DSS signatures.
| Fields inherited from interface gnu.crypto.sig.ISignatureCodec |
RAW_FORMAT |
| Constructor Summary | |
DSSSignatureRawCodec()
|
|
| Method Summary | |
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()
|
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public DSSSignatureRawCodec()
| Method Detail |
public int getFormatID()
getFormatID in interface ISignatureCodecpublic byte[] encodeSignature(java.lang.Object signature)
The Raw format for a DSA signature, in this implementation, is a byte sequence consisting of the following:
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 ISignatureCodec
|
For the latest news and information visit The GNU Crypto project |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||