Lines Matching refs:provider
85 private static void verify(Provider provider, String alg, PublicKey key, byte[] data, byte[] sig, boolean result) throws Exception {
86 Signature s = Signature.getInstance(alg, provider);
105 Provider provider = Security.getProvider("SUN");
106 System.out.println("Testing provider " + provider + "...");
108 KeyFactory kf = KeyFactory.getInstance("DSA", provider);
115 verify(provider, "SHA1withDSA", publicKey, data1Raw, sig1a, true);
116 verify(provider, "SHA1withDSA", publicKey, data1Raw, sig1b, true);
117 verify(provider, "SHA1withDSA", publicKey, data2Raw, sig1a, false);
118 verify(provider, "SHA1withDSA", publicKey, data2Raw, sig1b, false);
120 verify(provider, "RawDSA", publicKey, data1SHA, sig1a, true);
121 verify(provider, "RawDSA", publicKey, data1SHA, sig1b, true);
122 verify(provider, "RawDSA", publicKey, data2SHA, sig1a, false);
123 verify(provider, "RawDSA", publicKey, data2SHA, sig1b, false);
130 Signature s = Signature.getInstance("SHA1withDSA", provider);
141 s = Signature.getInstance("RawDSA", provider);
162 s = Signature.getInstance("SHA1withDSA", provider);
170 s = Signature.getInstance("RawDSA", provider);