Search in sources :

Example 1 with DSASigner

use of com.github.zhenwei.core.crypto.signers.DSASigner in project LinLong-Java by zhenwei1108.

the class BcDSAContentVerifierProviderBuilder method createSigner.

protected Signer createSigner(AlgorithmIdentifier sigAlgId) throws OperatorCreationException {
    AlgorithmIdentifier digAlg = digestAlgorithmFinder.find(sigAlgId);
    Digest dig = digestProvider.get(digAlg);
    return new DSADigestSigner(new DSASigner(), dig);
}
Also used : DSASigner(com.github.zhenwei.core.crypto.signers.DSASigner) DSADigestSigner(com.github.zhenwei.core.crypto.signers.DSADigestSigner) Digest(com.github.zhenwei.core.crypto.Digest) AlgorithmIdentifier(com.github.zhenwei.core.asn1.x509.AlgorithmIdentifier)

Aggregations

AlgorithmIdentifier (com.github.zhenwei.core.asn1.x509.AlgorithmIdentifier)1 Digest (com.github.zhenwei.core.crypto.Digest)1 DSADigestSigner (com.github.zhenwei.core.crypto.signers.DSADigestSigner)1 DSASigner (com.github.zhenwei.core.crypto.signers.DSASigner)1