Class BcTlsDSSSigner
java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner
org.bouncycastle.tls.crypto.impl.bc.BcTlsDSSSigner
- All Implemented Interfaces:
TlsSigner
- Direct Known Subclasses:
BcTlsDSASigner
,BcTlsECDSASigner
BC light-weight base class for the signers implementing the two DSA style algorithms from FIPS PUB 186-4: DSA and ECDSA.
-
Field Summary
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner
crypto, privateKey
-
Constructor Summary
ModifierConstructorDescriptionprotected
BcTlsDSSSigner
(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.bouncycastle.crypto.DSA
createDSAImpl
(int cryptoHashAlgorithm) byte[]
generateRawSignature
(SignatureAndHashAlgorithm algorithm, byte[] hash) Generate an encoded signature based on the passed in hash.protected abstract short
Methods inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner
getStreamSigner
-
Constructor Details
-
BcTlsDSSSigner
protected BcTlsDSSSigner(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey)
-
-
Method Details
-
createDSAImpl
protected abstract org.bouncycastle.crypto.DSA createDSAImpl(int cryptoHashAlgorithm) -
getSignatureAlgorithm
protected abstract short getSignatureAlgorithm() -
generateRawSignature
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException Description copied from interface:TlsSigner
Generate an encoded signature based on the passed in hash.- Parameters:
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.- Returns:
- an encoded signature.
- Throws:
IOException
- in case of an exception processing the hash.
-