| java.lang.Object org.bouncycastle.crypto.signers.PSSSigner
PSSSigner | public class PSSSigner implements Signer(Code) | | RSA-PSS as described in PKCS# 1 v 2.1.
Note: the usual value for the salt length is the number of
bytes in the hash function.
|
Method Summary | |
public byte[] | generateSignature() generate a signature for the message we've been loaded with using
the key we were initialised with. | public void | init(boolean forSigning, CipherParameters param) | public void | reset() | public void | update(byte b) | public void | update(byte[] in, int off, int len) | public boolean | verifySignature(byte[] signature) return true if the internal state represents the signature described
in the passed in array. |
TRAILER_IMPLICIT | final public static byte TRAILER_IMPLICIT(Code) | | |
PSSSigner | public PSSSigner(AsymmetricBlockCipher cipher, Digest digest, int sLen)(Code) | | basic constructor
Parameters: cipher - the assymetric cipher to use. Parameters: digest - the digest to use. Parameters: sLen - the length of the salt to use (in bytes). |
generateSignature | public byte[] generateSignature() throws CryptoException, DataLengthException(Code) | | generate a signature for the message we've been loaded with using
the key we were initialised with.
|
reset | public void reset()(Code) | | reset the internal state
|
update | public void update(byte b)(Code) | | update the internal digest with the byte b
|
update | public void update(byte[] in, int off, int len)(Code) | | update the internal digest with the byte array in
|
verifySignature | public boolean verifySignature(byte[] signature)(Code) | | return true if the internal state represents the signature described
in the passed in array.
|
|
|