Lines Matching defs:alg
95 private final String alg;
102 CipherTest(String alg, byte[] plaintext, byte[] ciphertext,
104 this.alg = alg;
129 Cipher cipher = Cipher.getInstance(alg, p);
138 "Cipher test encryption for " + alg + " failed:");
145 throw new Exception("encryption test for " + alg + " failed");
160 throw new Exception("decryption test for " + alg + " failed");
162 System.out.println("passed: " + alg);
166 private static Test t(String alg, String plaintext, char[] password,
168 return new CipherTest(alg, b(plaintext), b(ciphertext), password,