gnu.crypto.sig.rsa
Class RSAPSSSignatureRawCodec
- ISignatureCodec
public class RSAPSSSignatureRawCodec
An object that implements the
ISignatureCodec
operations for the
Raw format to use with RSA-PSS signatures.
Object | decodeSignature(byte[] k)
|
byte[] | encodeSignature(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:
- 4-byte magic consisting of the value of the literal
Registry.MAGIC_RAW_RSA_PSS_SIGNATURE , -
- 1-byte version consisting of the constant: 0x01,
- 4-byte count of following bytes representing the RSA-PSS signature
bytes in internet order,
- the RSA-PSS signature bytes in internet order.
|
int | getFormatID()
|
encodeSignature
public byte[] encodeSignature(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:
- 4-byte magic consisting of the value of the literal
Registry.MAGIC_RAW_RSA_PSS_SIGNATURE
, -
- 1-byte version consisting of the constant: 0x01,
- 4-byte count of following bytes representing the RSA-PSS signature
bytes in internet order,
- the RSA-PSS signature bytes in internet order.
- encodeSignature in interface ISignatureCodec
signature
- the signature to encode, consisting of the output of the
sign()
method of a RSAPSSSignature
instance --a byte
array.
- the Raw format encoding of the designated signature.
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.