Lines Matching refs:provider
86 private static void verify(Provider provider, String alg, PublicKey key, byte[] data, byte[] sig, boolean result) throws Exception {
87 Signature s = Signature.getInstance(alg, provider);
107 public void main(Provider provider) throws Exception {
110 System.out.println("Testing provider " + provider + "...");
112 if (provider.getService("Signature", "SHA1withDSA") == null) {
117 KeyFactory kf = KeyFactory.getInstance("DSA", provider);
124 verify(provider, "SHA1withDSA", publicKey, data1Raw, sig1a, true);
125 verify(provider, "SHA1withDSA", publicKey, data1Raw, sig1b, true);
126 verify(provider, "SHA1withDSA", publicKey, data2Raw, sig1a, false);
127 verify(provider, "SHA1withDSA", publicKey, data2Raw, sig1b, false);
129 verify(provider, "RawDSA", publicKey, data1SHA, sig1a, true);
130 verify(provider, "RawDSA", publicKey, data1SHA, sig1b, true);
131 verify(provider, "RawDSA", publicKey, data2SHA, sig1a, false);
132 verify(provider, "RawDSA", publicKey, data2SHA, sig1b, false);
134 testSigning(provider, privateKey, publicKey);
140 private void testSigning(Provider provider, PrivateKey privateKey,
147 Signature s = Signature.getInstance("SHA1withDSA", provider);
158 s = Signature.getInstance("RawDSA", provider);
179 s = Signature.getInstance("SHA1withDSA", provider);
187 s = Signature.getInstance("RawDSA", provider);