blob: db7b608dcf1d23375ea0ce14d7ce245cca03bd80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.spongycastle.operator.bc;
import org.spongycastle.asn1.x509.AlgorithmIdentifier;
import org.spongycastle.crypto.Digest;
import org.spongycastle.crypto.Signer;
import org.spongycastle.crypto.signers.DSADigestSigner;
import org.spongycastle.crypto.signers.DSASigner;
import org.spongycastle.operator.OperatorCreationException;
public class BcDSAContentSignerBuilder
extends BcContentSignerBuilder
{
public BcDSAContentSignerBuilder(AlgorithmIdentifier sigAlgId, AlgorithmIdentifier digAlgId)
{
super(sigAlgId, digAlgId);
}
protected Signer createSigner(AlgorithmIdentifier sigAlgId, AlgorithmIdentifier digAlgId)
throws OperatorCreationException
{
Digest dig = digestProvider.get(digAlgId);
return new DSADigestSigner(new DSASigner(), dig);
}
}
|