Top Fields Constructors Methods
org.bouncycastle.crypto.signers

public Class RSADigestSigner

extends Object
implements Signer
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Signer
Imports
java.io.IOException, java.util.Hashtable, org.bouncycastle.asn1.ASN1Encoding, .ASN1ObjectIdentifier, .DERNull, org.bouncycastle.asn1.nist.NISTObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DigestInfo, .X509ObjectIdentifiers, org.bouncycastle.crypto.AsymmetricBlockCipher, .CipherParameters, .CryptoException, .DataLengthException, .Digest, .Signer, org.bouncycastle.crypto.encodings.PKCS1Encoding, org.bouncycastle.crypto.engines.RSABlindedEngine, org.bouncycastle.crypto.params.AsymmetricKeyParameter, .ParametersWithRandom, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
private final AlgorithmIdentifier
private final Digest
private boolean
private static final Hashtable<K, V>
private final AsymmetricBlockCipher

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private byte[]
derEncode(byte[] hash)

public byte[]
generateSignature()

Implements org.bouncycastle.crypto.Signer.generateSignature.

Generate a signature for the message we've been loaded with using the key we were initialised with.

public String
getAlgorithmName()
Deprecated

public void
init(boolean
true if for signing, false otherwise
forSigning
,
CipherParameters
necessary parameters.
parameters
)

Implements org.bouncycastle.crypto.Signer.init.

Initialize the signer for signing or verification.

public void
reset()

Implements org.bouncycastle.crypto.Signer.reset.

reset the internal state

public void
update(byte input)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b

public void
update(byte[] input, int inOff, int length)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in

public boolean
verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algIdback to summary
private final AlgorithmIdentifier algId
digestback to summary
private final Digest digest
forSigningback to summary
private boolean forSigning
oidMapback to summary
private static final Hashtable<K, V> oidMap
rsaEngineback to summary
private final AsymmetricBlockCipher rsaEngine

Constructor Detail

RSADigestSignerback to summary
public RSADigestSigner(Digest digest)
RSADigestSignerback to summary
public RSADigestSigner(Digest digest, ASN1ObjectIdentifier digestOid)

Method Detail

derEncodeback to summary
private byte[] derEncode(byte[] hash) throws IOException
generateSignatureback to summary
public byte[] generateSignature() throws CryptoException, DataLengthException

Implements org.bouncycastle.crypto.Signer.generateSignature.

Generate a signature for the message we've been loaded with using the key we were initialised with.

getAlgorithmNameback to summary
public String getAlgorithmName()

Deprecated

initback to summary
public void init(boolean forSigning, CipherParameters parameters)

Implements org.bouncycastle.crypto.Signer.init.

Initialize the signer for signing or verification.

Parameters
forSigning:boolean

true if for signing, false otherwise

parameters:CipherParameters

necessary parameters.

resetback to summary
public void reset()

Implements org.bouncycastle.crypto.Signer.reset.

Doc from org.bouncycastle.crypto.Signer.reset.

reset the internal state

updateback to summary
public void update(byte input)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte b

updateback to summary
public void update(byte[] input, int inOff, int length)

Implements org.bouncycastle.crypto.Signer.update.

update the internal digest with the byte array in

verifySignatureback to summary
public boolean verifySignature(byte[] signature)

Implements org.bouncycastle.crypto.Signer.verifySignature.

return true if the internal state represents the signature described in the passed in array.