|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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.
Field Summary |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DSSSignatureRawCodec()
Method Detail |
public int getFormatID()
getFormatID
in interface ISignatureCodec
public 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 ISignatureCodec
signature
- 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |