|
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.rsa.RSAPSSSignatureRawCodec
An object that implements the ISignatureCodec
operations for the Raw format to use with RSA-PSS signatures.
Field Summary |
Fields inherited from interface gnu.crypto.sig.ISignatureCodec |
RAW_FORMAT |
Constructor Summary | |
RSAPSSSignatureRawCodec()
|
Method Summary | |
java.lang.Object |
decodeSignature(byte[] k)
|
byte[] |
encodeSignature(java.lang.Object signature)
Returns the encoded form of the designated RSA-PSS 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 RSAPSSSignatureRawCodec()
Method Detail |
public int getFormatID()
getFormatID
in interface ISignatureCodec
public byte[] encodeSignature(java.lang.Object signature)
Returns the encoded form of the designated RSA-PSS signature object according to the Raw format supported by this library.
The Raw format for an RSA-PSS signature, in this implementation, is a byte sequence consisting of the following:
Registry.MAGIC_RAW_RSA_PSS_SIGNATURE
,
encodeSignature
in interface ISignatureCodec
signature
- the signature to encode, consisting of the output of the
sign()
method of a RSAPSSSignature
instance --a byte
array.
java.lang.IllegalArgumentException
- if the designated signature is not an
RSA-PSS 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 |