Package org.bouncycastle.crypto.tls
Class TlsDSASigner
- java.lang.Object
-
- org.bouncycastle.crypto.tls.AbstractTlsSigner
-
- org.bouncycastle.crypto.tls.TlsDSASigner
-
- All Implemented Interfaces:
TlsSigner
- Direct Known Subclasses:
TlsDSSSigner,TlsECDSASigner
public abstract class TlsDSASigner extends AbstractTlsSigner
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsSigner
context
-
-
Constructor Summary
Constructors Constructor Description TlsDSASigner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DSAcreateDSAImpl(short hashAlgorithm)SignercreateSigner(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey)SignercreateVerifyer(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter publicKey)byte[]generateRawSignature(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey, byte[] hash)protected abstract shortgetSignatureAlgorithm()protected CipherParametersmakeInitParameters(boolean forSigning, CipherParameters cp)protected SignermakeSigner(SignatureAndHashAlgorithm algorithm, boolean raw, boolean forSigning, CipherParameters cp)booleanverifyRawSignature(SignatureAndHashAlgorithm algorithm, byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] hash)-
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsSigner
createSigner, createVerifyer, generateRawSignature, init, verifyRawSignature
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.tls.TlsSigner
isValidPublicKey
-
-
-
-
Method Detail
-
generateRawSignature
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey, byte[] hash) throws CryptoException
- Throws:
CryptoException
-
verifyRawSignature
public boolean verifyRawSignature(SignatureAndHashAlgorithm algorithm, byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] hash) throws CryptoException
- Throws:
CryptoException
-
createSigner
public Signer createSigner(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter privateKey)
-
createVerifyer
public Signer createVerifyer(SignatureAndHashAlgorithm algorithm, AsymmetricKeyParameter publicKey)
-
makeInitParameters
protected CipherParameters makeInitParameters(boolean forSigning, CipherParameters cp)
-
makeSigner
protected Signer makeSigner(SignatureAndHashAlgorithm algorithm, boolean raw, boolean forSigning, CipherParameters cp)
-
getSignatureAlgorithm
protected abstract short getSignatureAlgorithm()
-
createDSAImpl
protected abstract DSA createDSAImpl(short hashAlgorithm)
-
-