/openjdk9/jdk/test/com/sun/crypto/provider/Cipher/PBE/PBESameBuffer/ |
H A D | PBEWrapperCreator.java | 43 * @param algo algorithms to test 49 public static PBEWrapper createWrapper(Provider p, String algo, argument 51 if (algo.toUpperCase().contains(PBKDF2)) { 52 return new PBKDF2Wrapper(p, algo, passwd, out); 53 } else if (algo.toUpperCase().contains(AES)) { 54 return new AESPBEWrapper(p, algo, passwd, out); 56 return new PBECipherWrapper(p, algo, passwd, out);
|
H A D | AESPBEWrapper.java | 46 * @param algo PKDF2 algorithm 51 public AESPBEWrapper(Provider p, String algo, String passwd, argument 53 super(algo, 54 SecretKeyFactory.getInstance(algo, p).generateSecret( 56 Cipher.getInstance(algo, p), out); 76 (Cipher.getMaxAllowedKeyLength(this.algo) == Integer.MAX_VALUE); 78 out.println("Got unexpected exception for " + this.algo); 91 if (this.algo.endsWith("AES_256") && !isUnlimited) { 92 out.print("Expected exception not thrown for " + this.algo); 109 && this.algo [all...] |
H A D | PBECipherWrapper.java | 50 Provider p, String algo, String passwd, PrintStream out) 52 super(algo, 54 new StringTokenizer(algo, "/").nextToken(), p).generateSecret( 56 Cipher.getInstance(algo, p), out); 65 StringTokenizer st = new StringTokenizer(algo, "/"); 71 (Cipher.getMaxAllowedKeyLength(this.algo) == Integer.MAX_VALUE); 73 out.println("Got unexpected exception for " + this.algo); 84 + this.algo); 109 + algo); 112 out.println("Got unexpected exception for " + algo); 49 PBECipherWrapper( Provider p, String algo, String passwd, PrintStream out) argument [all...] |
/openjdk9/jdk/src/jdk.crypto.ucrypto/solaris/classes/com/oracle/security/ucrypto/ |
H A D | ServiceDesc.java | 37 private final String algo; field in class:ServiceDesc 41 ServiceDesc(String type, String algo, String cn) { argument 42 this(type, algo, cn, null); 45 ServiceDesc(String type, String algo, String cn, String[] aliases) { argument 47 this.algo = algo; 59 return algo; 68 return type + "." + algo + ": " + cn + ", aliases =" + aliases;
|
/openjdk9/jdk/test/com/sun/crypto/provider/CICO/PBEFunc/ |
H A D | AbstractPBEWrapper.java | 64 * @param algo PBE algorithm to test 66 * @return PBEWrapper in accordance to requested algo. 69 public static AbstractPBEWrapper createWrapper(PBEAlgorithm algo, String passwd) argument 71 switch (algo.type) { 73 return new PBKDF2Wrapper(algo, passwd); 75 return new AESPBEWrapper(algo, passwd); 77 return new DefaultPBEWrapper(algo, passwd); 84 * @param algo algorithm to wrap 88 protected AbstractPBEWrapper(PBEAlgorithm algo, String password, int saltSize) { argument 89 this.transformation = algo [all...] |
H A D | CICOPBEFuncTest.java | 42 String algo = algorithm.baseAlgo.toUpperCase(); 43 if (!algo.contains("TRIPLEDES") && !algo.contains("AES_256") 44 || Cipher.getMaxAllowedKeyLength(algo) > 128) {
|
/openjdk9/jdk/test/javax/crypto/Cipher/ |
H A D | GetMaxAllowed.java | 47 String algo = "Blowfish"; 48 int keyLength = Cipher.getMaxAllowedKeyLength(algo); 49 AlgorithmParameterSpec spec = Cipher.getMaxAllowedParameterSpec(algo); 52 throw new Exception("Check for " + algo + 57 throw new Exception("Check for " + algo + 61 algo = "RC5"; 62 keyLength = Cipher.getMaxAllowedKeyLength(algo); 64 Cipher.getMaxAllowedParameterSpec(algo); 67 throw new Exception("Check for " + algo + 74 throw new Exception("Check for " + algo [all...] |
/openjdk9/jdk/src/java.base/macosx/classes/apple/security/ |
H A D | AppleProvider.java | 46 ProviderService(Provider p, String type, String algo, String cn) { argument 47 super(p, type, algo, cn, null, null); 59 String algo = getAlgorithm(); 62 if (algo.equals("KeychainStore")) { 68 type + " for " + algo + " using Apple", ex); 70 throw new ProviderException("No impl for " + algo +
|
/openjdk9/jdk/test/com/sun/crypto/provider/Cipher/PBE/ |
H A D | PBEParametersTest.java | 59 String algo = PBE_ALGOS[i]; 60 SecretKeyFactory skf = SecretKeyFactory.getInstance(algo); 62 Cipher c = Cipher.getInstance(algo, "SunJCE"); 66 if (!params.getAlgorithm().equalsIgnoreCase(algo)) { 67 throw new Exception("expect: " + algo + 70 System.out.println(algo + "...done...");
|
H A D | PBEInvalidParamsTest.java | 64 String algo = PBE_ALGOS[i]; 65 System.out.println("=>testing " + algo); 66 SecretKeyFactory skf = SecretKeyFactory.getInstance(algo); 68 Cipher c = Cipher.getInstance(algo, "SunJCE"); 72 "not thrown for " + algo);
|
H A D | DecryptWithoutParameters.java | 42 String algo = "PBEWithMD5AndDES"; 43 Cipher cipher = Cipher.getInstance(algo, "SunJCE"); 44 SecretKey key = new SecretKeySpec(new byte[5], algo);
|
/openjdk9/jdk/src/java.xml.crypto/share/classes/org/jcp/xml/dsig/internal/dom/ |
H A D | XMLDSigRI.java | 71 ProviderService(Provider p, String type, String algo, String cn) { argument 72 super(p, type, algo, cn, null, null); 75 ProviderService(Provider p, String type, String algo, String cn, argument 77 super(p, type, algo, cn, 81 ProviderService(Provider p, String type, String algo, String cn, argument 83 super(p, type, algo, cn, 96 String algo = getAlgorithm(); 99 if (algo.equals("DOM")) { 103 if (algo.equals("DOM")) { 107 if (algo [all...] |
/openjdk9/jdk/src/java.security.sasl/share/classes/com/sun/security/sasl/ |
H A D | Provider.java | 59 ProviderService(java.security.Provider p, String type, String algo, argument 61 super(p, type, algo, cn, null, null); 73 String algo = getAlgorithm(); 76 if (algo.equals("DIGEST-MD5")) { 79 if (algo.equals("NTLM")) { 83 if (algo.equals("EXTERNAL") || algo.equals("PLAIN") || 84 algo.equals("CRAM-MD5")) { 88 if (algo.equals("CRAM-MD5")) { 94 type + " for " + algo [all...] |
/openjdk9/jdk/src/jdk.crypto.ec/share/classes/sun/security/ec/ |
H A D | SunEC.java | 74 ProviderService(Provider p, String type, String algo, String cn) { argument 75 super(p, type, algo, cn, null, null); 78 ProviderService(Provider p, String type, String algo, String cn, argument 80 super(p, type, algo, cn, 93 String algo = getAlgorithm(); 96 boolean inP1363 = algo.endsWith("inP1363Format"); 98 algo = algo.substring(0, algo.length() - 13); 100 if (algo [all...] |
/openjdk9/jdk/src/jdk.crypto.mscapi/windows/classes/sun/security/mscapi/ |
H A D | SunMSCAPI.java | 62 ProviderService(Provider p, String type, String algo, String cn) { argument 63 super(p, type, algo, cn, null, null); 66 ProviderService(Provider p, String type, String algo, String cn, argument 68 super(p, type, algo, cn, 81 String algo = getAlgorithm(); 84 if (algo.equals("Windows-PRNG")) { 88 if (algo.equals("Windows-MY")) { 90 } else if (algo.equals("Windows-ROOT")) { 94 if (algo.equals("NONEwithRSA")) { 96 } else if (algo [all...] |
/openjdk9/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);
|
H A D | LowercasePermCheck.java | 58 String algo = ALGOS[i]; 59 Cipher c = Cipher.getInstance(algo, p); 60 int keyLen1 = Cipher.getMaxAllowedKeyLength(algo); 61 int keyLen2 = Cipher.getMaxAllowedKeyLength(algo.toUpperCase()); 64 System.out.println("ERROR: Wrong keysize limit for " + algo); 69 System.out.println(algo + ": max " + keyLen1 + "-bit keys");
|
/openjdk9/jdk/src/java.security.jgss/share/classes/sun/security/jgss/ |
H A D | SunProvider.java | 69 ProviderService(Provider p, String type, String algo, String cn) { argument 70 super(p, type, algo, cn, null, null); 82 String algo = getAlgorithm(); 85 if (algo.equals("1.2.840.113554.1.2.2")) { 87 } else if (algo.equals("1.3.6.1.5.5.2")) { 94 algo + " using SunJGSS", ex); 96 throw new ProviderException("No impl for " + algo +
|
/openjdk9/jdk/src/java.naming/share/classes/sun/security/provider/certpath/ldap/ |
H A D | JdkLDAP.java | 45 ProviderService(Provider p, String type, String algo, String cn, argument 47 super(p, type, algo, cn, aliases, attrs); 54 String algo = getAlgorithm(); 55 if (type.equals("CertStore") && algo.equals("LDAP")) { 65 type + " for " + algo + " using JdkLDAP", ex); 68 throw new ProviderException("No impl for " + algo + " " + type);
|
/openjdk9/jdk/src/java.smartcardio/share/classes/sun/security/smartcardio/ |
H A D | SunPCSC.java | 45 ProviderService(Provider p, String type, String algo, String cn) { argument 46 super(p, type, algo, cn, null, null); 53 String algo = getAlgorithm(); 56 algo.equals("PC/SC")) { 61 type + " for " + algo + " using SunPCSC", ex); 63 throw new ProviderException("No impl for " + algo +
|
/openjdk9/jdk/test/com/oracle/security/ucrypto/ |
H A D | Test8004873.java | 61 for (String algo : PADDEDCIPHER_ALGOS) { 62 if (!testOOS(algo, prov)) { 64 System.out.println(algo + " Test Failed!"); 72 private boolean testOOS(String algo, Provider prov) argument 78 c = Cipher.getInstance(algo, prov); 80 System.out.println("Skipping Unsupported algo: " + algo);
|
/openjdk9/jdk/src/jdk.security.jgss/share/classes/com/sun/security/sasl/gsskerb/ |
H A D | JdkSASL.java | 50 ProviderService(Provider p, String type, String algo, String cn) { argument 51 super(p, type, algo, cn, null, null); 62 String algo = getAlgorithm(); 65 if (algo.equals("GSSAPI")) { 70 type + " for " + algo + " using JdkSASL", ex); 72 throw new ProviderException("No impl for " + algo +
|
/openjdk9/jdk/test/com/sun/crypto/provider/Mac/ |
H A D | MacClone.java | 42 for (String algo : algos) { 43 doTest(algo, skey, null); 52 for (String algo : algos2) { 53 doTest(algo, skey, params); 58 private static void doTest(String algo, SecretKey skey, argument 63 Mac mac = Mac.getInstance(algo, "SunJCE"); 80 mac = Mac.getInstance(algo, "SunJCE");
|
/openjdk9/jdk/test/java/security/KeyPairGenerator/ |
H A D | FinalizeHalf.java | 50 for (String algo : new String[] {"DiffieHellman", "DSA", "RSA"}) { 54 test(algo, provider, priv, method); 65 static void test(String algo, Provider provider, boolean priv, argument 69 generator = KeyPairGenerator.getInstance(algo, provider); 74 System.out.println("Checking " + provider.getName() + ", " + algo);
|
/openjdk9/jdk/test/javax/crypto/EncryptedPrivateKeyInfo/ |
H A D | GetAlgName.java | 52 String algo = ALGOS[i]; 55 SecretKeyFactory.getInstance(algo, "SunJCE"); 57 Cipher c = Cipher.getInstance(algo, "SunJCE"); 63 if (!epki.getAlgName().equalsIgnoreCase(algo)) { 64 System.out.println("...expect: " + algo);
|