/openjdk7/jdk/test/java/security/Provider/ |
H A D | CaseSensitiveServices.java | 61 private static Service testService(Provider p, String type, String alg) throws Exception { argument 62 System.out.println("Getting " + type + "." + alg + "..."); 63 Service s = p.getService(type, alg); 66 throw new Exception("Lookup failed for: " + type + "." + alg);
|
/openjdk7/jdk/src/share/classes/javax/crypto/ |
H A D | JceSecurityManager.java | 84 CryptoPermission getCryptoPermission(String alg) { argument 87 alg = alg.toUpperCase(Locale.ENGLISH); 92 CryptoPermission defaultPerm = getDefaultPermission(alg); 149 PermissionCollection appPc = appPerms.getPermissionCollection(alg); 165 exemptPolicy.getPermissionCollection(alg); 187 alg, cp.getMaxKeySize(), 192 alg, cp.getMaxKeySize(), 224 private CryptoPermission getDefaultPermission(String alg) { argument 226 defaultPolicy.getPermissionCollection(alg) [all...] |
H A D | CryptoPermission.java | 54 private String alg; field in class:CryptoPermission 68 * @param alg the algorithm name. 70 CryptoPermission(String alg) { argument 72 this.alg = alg; 82 * @param alg the algorithm name. 87 CryptoPermission(String alg, int maxKeySize) { argument 89 this.alg = alg; 102 * @param alg th 110 CryptoPermission(String alg, int maxKeySize, AlgorithmParameterSpec algParamSpec) argument 132 CryptoPermission(String alg, String exemptionMechanism) argument 154 CryptoPermission(String alg, int maxKeySize, String exemptionMechanism) argument 183 CryptoPermission(String alg, int maxKeySize, AlgorithmParameterSpec algParamSpec, String exemptionMechanism) argument [all...] |
H A D | CryptoPermissions.java | 149 String alg = cryptoPerm.getAlgorithm(); 150 perms.putIfAbsent(alg, pc); 226 String alg = (String)thisKeys.nextElement(); 229 (PermissionCollection)this.perms.get(alg); 231 (PermissionCollection)other.perms.get(alg); 270 String alg = (String)thatKeys.nextElement(); 272 if (this.perms.containsKey(alg)) { 277 (PermissionCollection)other.perms.get(alg); 393 * @param alg the algorithm name. 395 PermissionCollection getPermissionCollection(String alg) { argument [all...] |
H A D | CryptoPolicyParser.java | 193 e.alg = CryptoAllPermission.ALG_NAME; 201 e.alg = match("quoted string").toUpperCase(ENGLISH); 206 e.alg = CryptoPermission.ALG_NAME_WILDCARD; 225 if (!isConsistent(e.alg, e.exemptionMechanism, processedPermissions)) { 474 pe.alg, 480 pe.alg, 494 private boolean isConsistent(String alg, argument 504 processedPermissions.put(alg, exemptionMechanisms); 514 if (processedPermissions.containsKey(alg)) { 515 exemptionMechanisms = (Vector)processedPermissions.get(alg); 613 String alg; field in class:CryptoPolicyParser.CryptoPermissionEntry [all...] |
H A D | Cipher.java | 347 Transform(String alg, String suffix, String mode, String pad) { argument 348 this.transform = alg + suffix; 414 String alg = parts[0]; 426 Transform tr = new Transform(alg, "", null, null); 431 list.add(new Transform(alg, "/" + mode + "/" + pad, null, null)); 432 list.add(new Transform(alg, "/" + mode, null, pad)); 433 list.add(new Transform(alg, "//" + pad, mode, null)); 434 list.add(new Transform(alg, "", mode, pad)); 441 String alg = s.getAlgorithm().toUpperCase(Locale.ENGLISH); 444 if (alg [all...] |
/openjdk7/jdk/test/javax/crypto/spec/DESKeySpec/ |
H A D | CheckParity.java | 60 static private void check(String alg, byte [] key, argument 63 SecretKeyFactory skf = SecretKeyFactory.getInstance(alg, "SunJCE");
|
/openjdk7/jdk/src/share/classes/org/jcp/xml/dsig/internal/dom/ |
H A D | DOMCanonicalizationMethod.java | 114 private static boolean isC14Nalg(String alg) { argument 115 return (alg.equals(CanonicalizationMethod.INCLUSIVE) || 116 alg.equals(CanonicalizationMethod.INCLUSIVE_WITH_COMMENTS) || 117 alg.equals(CanonicalizationMethod.EXCLUSIVE) || 118 alg.equals(CanonicalizationMethod.EXCLUSIVE_WITH_COMMENTS) || 119 alg.equals(DOMCanonicalXMLC14N11Method.C14N_11) || 120 alg.equals(DOMCanonicalXMLC14N11Method.C14N_11_WITH_COMMENTS));
|
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/PBE/ |
H A D | PKCS12Cipher.java | 41 private static void runTest(String alg, byte[] plaintext, argument 44 Cipher cipher = Cipher.getInstance(alg, p); 59 throw new Exception("decryption test for " + alg + " failed"); 78 System.out.println("passed: " + alg);
|
H A D | PKCS12CipherKAT.java | 95 private final String alg; field in class:PKCS12CipherKAT.CipherTest 102 CipherTest(String alg, byte[] plaintext, byte[] ciphertext, argument 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, Strin argument [all...] |
/openjdk7/jdk/test/com/sun/crypto/provider/Mac/ |
H A D | HmacSaltLengths.java | 41 private static void runTest(String alg, byte[] plaintext, argument 44 Mac mac = Mac.getInstance(alg, p); 74 System.out.println("passed: " + alg);
|
H A D | MacKAT.java | 106 private final String alg; field in class:MacKAT.MacTest 110 MacTest(String alg, byte[] input, byte[] macvalue, byte[] key) { argument 111 this.alg = alg; 117 Mac mac = Mac.getInstance(alg, p); 118 SecretKey keySpec = new SecretKeySpec(key, alg); 123 System.out.println("Mac test for " + alg + " failed:"); 130 throw new Exception("Mac test for " + alg + " failed"); 132 System.out.println("passed: " + alg); 147 private static Test t(String alg, Strin argument 151 t(String alg, byte[] input, String macvalue, String key) argument 155 t(String alg, byte[] input, String macvalue, byte[] key) argument [all...] |
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/RC2ArcFour/ |
H A D | CipherKAT.java | 106 private final String alg; field in class:CipherKAT.CipherTest 111 CipherTest(String alg, byte[] plaintext, byte[] ciphertext, byte[] key, byte[] iv) { argument 112 this.alg = alg; 119 Cipher cipher = Cipher.getInstance(alg, p); 120 SecretKey keySpec = new SecretKeySpec(key, alg.split("/")[0]); 130 System.out.println("Cipher test encryption for " + alg + " failed:"); 138 throw new Exception("Cipher test encryption for " + alg + " failed"); 147 System.out.println("Cipher test decryption for " + alg + " failed:"); 155 throw new Exception("Cipher test decryption for " + alg 169 t(String alg, String plaintext, String ciphertext, String key) argument [all...] |
/openjdk7/jdk/test/sun/security/provider/MessageDigest/ |
H A D | DigestKAT.java | 100 private final String alg; field in class:DigestKAT.DigestTest 103 DigestTest(String alg, byte[] data, byte[] digest) { argument 104 this.alg = alg; 110 if (alg.equals("MD4")) { 113 md = MessageDigest.getInstance(alg, p); 118 System.out.println("Digest test for " + alg + " failed:"); 124 throw new Exception("Digest test for " + alg + " failed"); 126 // System.out.println("Passed " + alg); 138 private static Test t(String alg, byt argument [all...] |
/openjdk7/jdk/test/sun/security/pkcs11/MessageDigest/ |
H A D | DigestKAT.java | 101 private final String alg; field in class:DigestKAT.DigestTest 104 DigestTest(String alg, byte[] data, byte[] digest) { argument 105 this.alg = alg; 110 if (p.getService("MessageDigest", alg) == null) { 111 System.out.println("Skipped " + alg); 114 MessageDigest md = MessageDigest.getInstance(alg, p); 118 System.out.println("Digest test for " + alg + " failed:"); 124 throw new Exception("Digest test for " + alg + " failed"); 126 // System.out.println("Passed " + alg); 138 t(String alg, byte[] data, String digest) argument [all...] |
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/RSA/ |
H A D | TestRSA.java | 122 private static void testEncDec(String alg, int len, Key encKey, Key decKey) throws Exception { argument 123 System.out.println("Testing en/decryption using " + alg + "..."); 124 Cipher c = Cipher.getInstance(alg, p); 144 public static void testKat(String alg, int mode, Key key, String in, String out, boolean result) throws Exception { argument 145 System.out.println("Testing known values for " + alg + "..."); 146 Cipher c = Cipher.getInstance(alg, p);
|
/openjdk7/jdk/test/sun/security/provider/DSA/ |
H A D | TestDSA.java | 85 private static void verify(Provider provider, String alg, PublicKey key, byte[] data, byte[] sig, boolean result) throws Exception { argument 86 Signature s = Signature.getInstance(alg, provider);
|
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/ |
H A D | TemplateManager.java | 115 CK_ATTRIBUTE[] getAttributes(String op, long type, long alg, argument 117 TemplateKey key = new TemplateKey(op, type, alg);
|
H A D | Token.java | 279 CK_ATTRIBUTE[] getAttributes(String op, long type, long alg, argument 282 templateManager.getAttributes(op, type, alg, attrs);
|
/openjdk7/jdk/test/sun/security/pkcs11/Signature/ |
H A D | TestDSA.java | 86 private static void verify(Provider provider, String alg, PublicKey key, byte[] data, byte[] sig, boolean result) throws Exception { argument 87 Signature s = Signature.getInstance(alg, provider);
|
/openjdk7/jdk/test/sun/security/pkcs11/ec/ |
H A D | TestECDSA.java | 83 private static void verify(Provider provider, String alg, PublicKey key, byte[] data, byte[] sig, boolean result) throws Exception { argument 84 Signature s = Signature.getInstance(alg, provider); 100 private static void sign(Provider provider, String alg, PrivateKey key, byte[] data) throws Exception { argument 101 Signature s = Signature.getInstance(alg, provider);
|
/openjdk7/jdk/src/share/classes/sun/security/ssl/ |
H A D | HandshakeHash.java | 228 private static String normalizeAlgName(String alg) { argument 229 alg = alg.toUpperCase(Locale.US); 230 if (alg.startsWith("SHA")) { 231 if (alg.length() == 3) { 234 if (alg.charAt(3) != '-') { 235 return "SHA-" + alg.substring(3); 238 return alg;
|
/openjdk7/jdk/test/sun/security/pkcs11/KeyStore/ |
H A D | Basic.java | 95 String alg; field in class:Basic.P11SecretKey 97 public P11SecretKey(String alg, int length) { argument 98 this.alg = alg; 101 public String getAlgorithm() { return alg; }
|
/openjdk7/jdk/src/share/classes/com/sun/net/ssl/ |
H A D | SSLSecurity.java | 61 private static Service getService(String type, String alg) { argument 64 Service s = p.getService(type, alg);
|
/openjdk7/jdk/src/share/classes/sun/security/jgss/krb5/ |
H A D | CipherHelper.java | 142 byte[] calculateChecksum(int alg, byte[] header, byte[] trailer, argument 145 switch (alg) {
|