/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 | 193 public static String getAlgorithmProperty(String algName, in getAlgorithmProperty() argument 196 + "." + algName); in getAlgorithmProperty() 767 String algName = filterComponents[1]; in getAllQualifyingCandidates() local 770 return getProvidersNotUsingCache(serviceName, algName, attrName, in getAllQualifyingCandidates() 776 String algName, in getProvidersNotUsingCache() argument 783 algName, in getProvidersNotUsingCache() 797 String algName, in isCriterionSatisfied() argument 800 String key = serviceName + '.' + algName; in isCriterionSatisfied() 814 algName, in isCriterionSatisfied() 904 String algName = null; in getFilterComponents() local [all …]
|
/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 | 236 String algName = nameTable.get(algid); in getName() local 237 if (algName != null) { in getName() 238 return algName; in getName() 248 algName = paramsName + "withECDSA"; in getName() 257 algName = nameTable.get(algid); in getName() 260 return (algName == null) ? algid.toString() : algName; in getName()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 1031 public static Class<? extends KeySpec> getPrivateKeySpecClass(String algName) { in getPrivateKeySpecClass() argument 1032 return PRIVATE_KEY_SPEC_CLASSES.get(algName); in getPrivateKeySpecClass() 1035 public static Class<? extends KeySpec> getPublicKeySpecClass(String algName) { in getPublicKeySpecClass() argument 1036 return PUBLIC_KEY_SPEC_CLASSES.get(algName); in getPublicKeySpecClass() 1039 public static int getMinimumKeySize(String algName) { in getMinimumKeySize() argument 1040 return MINIMUM_KEY_SIZE.get(algName); in getMinimumKeySize()
|