Google

Bouncy Castle Cryptography 1.11 API Specification: Class PSSSigner
Bouncy Castle Cryptography 1.11

org.bouncycastle.crypto.signers
Class PSSSigner

java.lang.Object
  |
  +--org.bouncycastle.crypto.signers.PSSSigner

public class PSSSigner
extends java.lang.Object

RSA-PSS as described in PKCS# 1 v 2.1


Field Summary
static byte TRAILER_IMPLICIT
           
 
Constructor Summary
PSSSigner(AsymmetricBlockCipher cipher, Digest digest, int sLen)
          basic constructor
 
Method Summary
 byte[] generateSignature(byte[] message)
          generate a signature for the given message using the key we were initialised with.
 void init(boolean forSigning, CipherParameters param)
           
 boolean verifySignature(byte[] message, byte[] signature)
          return true if the signature represents a ISO9796-2 signature for the passed in message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRAILER_IMPLICIT

public static final byte TRAILER_IMPLICIT
Constructor Detail

PSSSigner

public PSSSigner(AsymmetricBlockCipher cipher,
                 Digest digest,
                 int sLen)
basic constructor
Parameters:
cipher - the assymetric cipher to use.
digest - the digest to use.
sLen - the length of the salt to use (in bytes).
Method Detail

init

public void init(boolean forSigning,
                 CipherParameters param)

generateSignature

public byte[] generateSignature(byte[] message)
                         throws CryptoException,
                                DataLengthException
generate a signature for the given message using the key we were initialised with.
Parameters:
message - the message that will be verified later.

verifySignature

public boolean verifySignature(byte[] message,
                               byte[] signature)
return true if the signature represents a ISO9796-2 signature for the passed in message.

Bouncy Castle Cryptography 1.11