Searched defs:algo (Results 1 - 7 of 7) sorted by relevance
| /openjdk7/jdk/test/javax/crypto/CryptoPermission/ |
| H A D | RC4AliasPermCheck.java | 42 * @param algo algorithm for key and cipher 45 private static void test(String algo, int keyLen) throws Exception { argument 47 System.out.println("=>Testing " + algo + " cipher with " 49 KeyGenerator kg = KeyGenerator.getInstance(algo, p); 54 Cipher cipher = Cipher.getInstance(algo, p); 56 algo);
|
| /openjdk7/jdk/test/com/sun/crypto/provider/KeyGenerator/ |
| H A D | TestExplicitKeyLength.java | 43 public static void runTest(String algo, int keysize) throws Exception { argument 44 KeyGenerator kg = KeyGenerator.getInstance(algo, "SunJCE");
|
| /openjdk7/jdk/test/sun/security/provider/MessageDigest/ |
| H A D | TestSHAClone.java | 49 private TestSHAClone(String algo, Provider p) throws Exception { argument 50 md = MessageDigest.getInstance(algo, p);
|
| /openjdk7/jdk/src/share/classes/sun/security/pkcs11/ |
| H A D | P11SecretKeyFactory.java | 109 static P11Key convertKey(Token token, Key key, String algo) argument 111 return convertKey(token, key, algo, null); 119 static P11Key convertKey(Token token, Key key, String algo, argument 130 if (algo == null) { 131 algo = key.getAlgorithm(); 132 algoType = getKeyType(algo); 134 algoType = getKeyType(algo); 141 ("Key algorithm must be " + algo); 175 p11Key = createKey(token, encoded, algo, algoType, extraAttrs);
|
| /openjdk7/jdk/src/share/classes/com/sun/crypto/provider/ |
| H A D | PBECipherCore.java | 49 private String algo = null; field in class:PBECipherCore 60 algo = cipherAlg; 61 if (algo.equals("DES")) { 64 } else if (algo.equals("DESede")) { 70 "for PBEWithMD5And" + algo); 173 (algo.equalsIgnoreCase("DES")? "DES":"TripleDES"), "SunJCE"); 252 derivedKey.length-8, algo); 266 if (algo.equals("DES")) { 281 } else if (algo.equals("DESede")) {
|
| H A D | PKCS12PBECipherCore.java | 50 private String algo = null; field in class:PKCS12PBECipherCore 153 algo = symmCipherAlg; 155 if (algo.equals("DESede")) { 157 } else if (algo.equals("RC2")) { 161 "for PBEWithSHA1And" + algo); 214 (algo.equalsIgnoreCase("RC2")?"RC2_40":algo), "SunJCE"); 311 SecretKey cipherKey = new SecretKeySpec(derivedKey, algo);
|
| /openjdk7/jdk/test/javax/xml/crypto/dsig/ |
| H A D | GenerationTests.java | 1116 private static PublicKey getPublicKey(String algo) throws Exception { argument 1117 return getPublicKey(algo, 512); 1120 private static PublicKey getPublicKey(String algo, int keysize) argument 1122 KeyFactory kf = KeyFactory.getInstance(algo); 1124 if (algo.equalsIgnoreCase("DSA")) { 1129 } else if (algo.equalsIgnoreCase("RSA")) { 1137 } else throw new RuntimeException("Unsupported key algorithm " + algo); 1141 private static PrivateKey getPrivateKey(String algo) throws Exception { argument 1142 return getPrivateKey(algo, 512); 1145 private static PrivateKey getPrivateKey(String algo, in argument [all...] |
Completed in 121 milliseconds