public abstract class BcTlsDSSSigner extends BcTlsSigner
crypto, privateKey
Modifier | Constructor and Description |
---|---|
protected |
BcTlsDSSSigner(BcTlsCrypto crypto,
org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey) |
Modifier and Type | Method and Description |
---|---|
protected 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 |
getSignatureAlgorithm() |
getStreamSigner
protected BcTlsDSSSigner(BcTlsCrypto crypto, org.bouncycastle.crypto.params.AsymmetricKeyParameter privateKey)
protected abstract org.bouncycastle.crypto.DSA createDSAImpl(int cryptoHashAlgorithm)
protected abstract short getSignatureAlgorithm()
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws java.io.IOException
TlsSigner
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.java.io.IOException
- in case of an exception processing the hash.