/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | EncryptedPrivateKeyInfoTest.java | 71 private static final String[][] algName = { field in EncryptedPrivateKeyInfoTest 199 for (int i = 0; i < algName.length; i++) { in test_getAlgName() 202 TestDataGenerator g = new TestDataGenerator(algName[i][0], in test_getAlgName() 203 algName[i][1], privateKeyInfoDamaged, null); in test_getAlgName() 208 epki = new EncryptedPrivateKeyInfo(algName[i][0], g.ct()); in test_getAlgName() 214 if (algName[i].length == 3) { in test_getAlgName() 215 assertEquals(algName[i][2], epki.getAlgName()); in test_getAlgName() 1116 for (int i = 0; i < algName.length; i++) { in test_ROUNDTRIP_GetKeySpecCipher01() 1119 TestDataGenerator g = new TestDataGenerator(algName[i][0], in test_ROUNDTRIP_GetKeySpecCipher01() 1120 algName[i][1], privateKeyInfo, null); in test_ROUNDTRIP_GetKeySpecCipher01() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
D | EncryptedPrivateKeyInfoData.java | 1195 String algName, boolean includingAlgParameters) in getValidEncryptedPrivateKeyInfoEncoding() argument 1197 String algNameUC = algName.toUpperCase(); in getValidEncryptedPrivateKeyInfoEncoding() 1204 + algName); in getValidEncryptedPrivateKeyInfoEncoding() 1207 public static byte[] getValidEncryptedPrivateKeyInfoEncoding(String algName) in getValidEncryptedPrivateKeyInfoEncoding() argument 1209 return getValidEncryptedPrivateKeyInfoEncoding(algName, true); in getValidEncryptedPrivateKeyInfoEncoding() 1218 public static byte[] getParametersEncoding(String algName) in getParametersEncoding() argument 1220 String algNameUC = algName.toUpperCase(); in getParametersEncoding() 1226 + algName); in getParametersEncoding()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | SecretKeyFactoryThread.java | 32 SecretKeyFactory skf = SecretKeyFactory.getInstance(algName); in test() 34 KeySpec ks = (KeySpec) ((algName == "DES") ? new DESKeySpec(b) : in test() 35 (algName == "DESede") ? new DESedeKeySpec(b) : in test()
|
D | CipherThread.java | 32 private String algName = null; field in CipherThread 41 algName = name; in CipherThread() 118 return algName; in getAlgName() 138 return "Alg name:" + algName + " Key:" + keyLength + " Mode:" + mode + in getCipherParameters() 147 return algName; in getAlgorithmName()
|
D | TestThread.java | 21 public String algName = null; field in TestThread 37 algName = getNextAlgorithmName(); in launcher() 71 return algName; in getAlgorithmName()
|
D | MacThread.java | 39 Mac m = Mac.getInstance(algName); in test() 54 throw new Exception ("Signature is not correct for algorithm " + algName); in test()
|
D | KeyGeneratorThread.java | 31 KeyGenerator kg = KeyGenerator.getInstance(algName); in test() 37 if(kg.getAlgorithm().toLowerCase().equals(algName.toLowerCase()) != true) { in test()
|
D | KeyAgreementThread.java | 80 byte[] sk1 = kag1.getSecretKey(algName, bArray2); in test() 81 byte[] sk2 = kag2.getSecretKey(algName, bArray1); in test()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Security.java | 232 public static String getAlgorithmProperty(String algName, in getAlgorithmProperty() argument 235 + "." + algName); in getAlgorithmProperty() 830 String algName = filterComponents[1]; in getAllQualifyingCandidates() local 833 return getProvidersNotUsingCache(serviceName, algName, attrName, in getAllQualifyingCandidates() 839 String algName, in getProvidersNotUsingCache() argument 846 algName, in getProvidersNotUsingCache() 860 String algName, in isCriterionSatisfied() argument 863 String key = serviceName + '.' + algName; in isCriterionSatisfied() 877 algName, in isCriterionSatisfied() 967 String algName = null; in getFilterComponents() local [all …]
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 792 public static Class<? extends KeySpec> getPrivateKeySpecClass(String algName) { in getPrivateKeySpecClass() argument 793 return PRIVATE_KEY_SPEC_CLASSES.get(algName); in getPrivateKeySpecClass() 796 public static Class<? extends KeySpec> getPublicKeySpecClass(String algName) { in getPublicKeySpecClass() argument 797 return PUBLIC_KEY_SPEC_CLASSES.get(algName); in getPublicKeySpecClass() 800 public static int getMinimumKeySize(String algName) { in getMinimumKeySize() argument 801 return MINIMUM_KEY_SIZE.get(algName); in getMinimumKeySize()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | EncryptedPrivateKeyInfo.java | 131 public EncryptedPrivateKeyInfo(String algName, byte[] encryptedData) in EncryptedPrivateKeyInfo() argument 134 if (algName == null) in EncryptedPrivateKeyInfo() 137 this.algid = AlgorithmId.get(algName); in EncryptedPrivateKeyInfo()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | AlgorithmId.java | 237 String algName = nameTable.get(algid); in getName() local 238 if (algName != null) { in getName() 239 return algName; in getName() 246 algName = makeSigAlg(paramsName, "EC"); in getName() 256 algName = nameTable.get(algid); in getName() 260 return (algName == null) ? algid.toString() : algName; in getName()
|