Java 类org.bouncycastle.crypto.DSA 实例源码

项目:gwt-crypto    文件:DeterministicDSATest.java   
private void doTestHMACDetECDSA(DSA detSigner, Digest digest, byte[] data, CipherParameters privKey, BigInteger r, BigInteger s)
{
    byte[] m = new byte[digest.getDigestSize()];

    digest.update(data, 0, data.length);

    digest.doFinal(m, 0);

    detSigner.init(true, privKey);

    BigInteger[] rs = detSigner.generateSignature(m);

    if (!r.equals(rs[0]))
    {
        fail("r value wrong");
    }
    if (!s.equals(rs[1]))
    {
        fail("s value wrong");
    }
}
项目:ipack    文件:DSADigestSigner.java   
public DSADigestSigner(
    DSA    signer,
    Digest digest)
{
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:ipack    文件:DSASigner.java   
protected DSASigner(
    Digest digest,
    DSA signer)
{
    this.digest = digest;
    this.signer = signer;
}
项目:ipack    文件:DSABase.java   
protected DSABase(
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:Direct-File-Downloader    文件:JDKDSASigner.java   
protected JDKDSASigner(
    String                  name,
    Digest                  digest,
    DSA                     signer)
{
    super(name);

    this.digest = digest;
    this.signer = signer;
}
项目:gwt-crypto    文件:DSADigestSigner.java   
public DSADigestSigner(
    DSA    signer,
    Digest digest)
{
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:Aki-SSL    文件:DSADigestSigner.java   
public DSADigestSigner(
    DSA    signer,
    Digest digest)
{
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:Aki-SSL    文件:DSASigner.java   
protected DSASigner(
    Digest digest,
    DSA signer)
{
    this.digest = digest;
    this.signer = signer;
}
项目:Aki-SSL    文件:DSABase.java   
protected DSABase(
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:TinyTravelTracker    文件:DSADigestSigner.java   
public DSADigestSigner(
    DSA    signer,
    Digest digest)
{
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:AcademicTorrents-Downloader    文件:JDKDSASigner.java   
protected JDKDSASigner(
    String                  name,
    Digest                  digest,
    DSA                     signer)
{
    super(name);

    this.digest = digest;
    this.signer = signer;
}
项目:CryptMeme    文件:DSADigestSigner.java   
public DSADigestSigner(
    DSA    signer,
    Digest digest)
{
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:CryptMeme    文件:DSASigner.java   
protected DSASigner(
    Digest digest,
    DSA signer)
{
    this.digest = digest;
    this.signer = signer;
}
项目:CryptMeme    文件:DSABase.java   
protected DSABase(
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:irma_future_id    文件:DSADigestSigner.java   
public DSADigestSigner(
    DSA    signer,
    Digest digest)
{
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:irma_future_id    文件:DSASigner.java   
protected DSASigner(
    Digest digest,
    DSA signer)
{
    this.digest = digest;
    this.signer = signer;
}
项目:irma_future_id    文件:DSABase.java   
protected DSABase(
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:irma_future_id    文件:DSABase.java   
protected DSABase(
    String                  name,
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    super(name);

    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:irma_future_id    文件:DSASigner.java   
protected DSASigner(
    Digest digest,
    DSA signer)
{
    super("DSA");
    this.digest = digest;
    this.signer = signer;
}
项目:irma_future_id    文件:DSABase.java   
protected DSABase(
    String                  name,
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    super(name);

    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:bc-java    文件:DSADigestSigner.java   
public DSADigestSigner(
    DSA    signer,
    Digest digest)
{
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:bc-java    文件:DSASigner.java   
protected DSASigner(
    Digest digest,
    DSA signer)
{
    this.digest = digest;
    this.signer = signer;
}
项目:bc-java    文件:DSABase.java   
protected DSABase(
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:bc-java    文件:DSABase.java   
protected DSABase(
    String                  name,
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    super(name);

    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:bc-java    文件:DSASigner.java   
protected DSASigner(
    Digest digest,
    DSA signer)
{
    super("DSA");
    this.digest = digest;
    this.signer = signer;
}
项目:bc-java    文件:DSABase.java   
protected DSABase(
    String                  name,
    Digest                  digest,
    DSA                     signer,
    DSAEncoder              encoder)
{
    super(name);

    this.digest = digest;
    this.signer = signer;
    this.encoder = encoder;
}
项目:ipack    文件:TlsECDSASigner.java   
protected DSA createDSAImpl()
{
    return new ECDSASigner();
}
项目:ipack    文件:TlsDSSSigner.java   
protected DSA createDSAImpl()
{
    return new DSASigner();
}
项目:ipack    文件:SignatureSpi.java   
SignatureSpi(Digest digest, DSA signer, DSAEncoder encoder)
{
    super(digest, signer, encoder);
}
项目:xitk    文件:DSAPlainDigestSigner.java   
public DSAPlainDigestSigner(DSA signer, Digest digest) {
    this.digest = digest;
    this.dsaSigner = signer;
}
项目:gwt-crypto    文件:TlsECDSASigner.java   
protected DSA createDSAImpl(short hashAlgorithm)
{
    return new ECDSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm)));
}
项目:gwt-crypto    文件:TlsDSSSigner.java   
protected DSA createDSAImpl(short hashAlgorithm)
{
    return new DSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm)));
}
项目:Aki-SSL    文件:TlsECDSASigner.java   
protected DSA createDSAImpl(short hashAlgorithm)
{
    return new ECDSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm)));
}
项目:Aki-SSL    文件:TlsDSSSigner.java   
protected DSA createDSAImpl(short hashAlgorithm)
{
    return new DSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm)));
}
项目:Aki-SSL    文件:SignatureSpi.java   
SignatureSpi(Digest digest, DSA signer, DSAEncoder encoder)
{
    super(digest, signer, encoder);
}
项目:TinyTravelTracker    文件:TlsECDSASigner.java   
protected DSA createDSAImpl(short hashAlgorithm)
{
    return new ECDSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm)));
}
项目:TinyTravelTracker    文件:TlsDSSSigner.java   
protected DSA createDSAImpl(short hashAlgorithm)
{
    return new DSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm)));
}
项目:CryptMeme    文件:TlsECDSASigner.java   
protected DSA createDSAImpl()
{
    return new ECDSASigner();
}
项目:CryptMeme    文件:TlsDSSSigner.java   
protected DSA createDSAImpl()
{
    return new DSASigner();
}
项目:CryptMeme    文件:SignatureSpi.java   
SignatureSpi(Digest digest, DSA signer, DSAEncoder encoder)
{
    super(digest, signer, encoder);
}