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"); } }
public DSADigestSigner( DSA signer, Digest digest) { this.digest = digest; this.dsaSigner = signer; }
protected DSASigner( Digest digest, DSA signer) { this.digest = digest; this.signer = signer; }
protected DSABase( Digest digest, DSA signer, DSAEncoder encoder) { this.digest = digest; this.signer = signer; this.encoder = encoder; }
protected JDKDSASigner( String name, Digest digest, DSA signer) { super(name); this.digest = digest; this.signer = signer; }
protected DSABase( String name, Digest digest, DSA signer, DSAEncoder encoder) { super(name); this.digest = digest; this.signer = signer; this.encoder = encoder; }
protected DSASigner( Digest digest, DSA signer) { super("DSA"); this.digest = digest; this.signer = signer; }
protected DSA createDSAImpl() { return new ECDSASigner(); }
protected DSA createDSAImpl() { return new DSASigner(); }
SignatureSpi(Digest digest, DSA signer, DSAEncoder encoder) { super(digest, signer, encoder); }
public DSAPlainDigestSigner(DSA signer, Digest digest) { this.digest = digest; this.dsaSigner = signer; }
protected DSA createDSAImpl(short hashAlgorithm) { return new ECDSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm))); }
protected DSA createDSAImpl(short hashAlgorithm) { return new DSASigner(new HMacDSAKCalculator(TlsUtils.createHash(hashAlgorithm))); }