Home
last modified time | relevance | path

Searched refs:algName (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DEncryptedPrivateKeyInfoTest.java71 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/main/java/javax/crypto/
DEncryptedPrivateKeyInfo.java60 private String algName; field in EncryptedPrivateKeyInfo
93 algName = aId.getAlgorithm(); in EncryptedPrivateKeyInfo()
103 aParams = AlgorithmParameters.getInstance(algName); in EncryptedPrivateKeyInfo()
106 algName = aParams.getAlgorithm(); in EncryptedPrivateKeyInfo()
141 this.algName = encryptionAlgorithmName; in EncryptedPrivateKeyInfo()
143 throw new NoSuchAlgorithmException("Unsupported algorithm: " + this.algName); in EncryptedPrivateKeyInfo()
187 this.algName = this.algParameters.getAlgorithm(); in EncryptedPrivateKeyInfo()
189 throw new NoSuchAlgorithmException("Unsupported algorithm: " + this.algName); in EncryptedPrivateKeyInfo()
199 return algName; in getAlgName()
284 Cipher cipher = Cipher.getInstance(algName); in getKeySpec()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DEncryptedPrivateKeyInfoData.java1195 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/
DSecretKeyFactoryThread.java32 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()
DCipherThread.java32 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()
DTestThread.java21 public String algName = null; field in TestThread
37 algName = getNextAlgorithmName(); in launcher()
71 return algName; in getAlgorithmName()
DMacThread.java39 Mac m = Mac.getInstance(algName); in test()
54 throw new Exception ("Signature is not correct for algorithm " + algName); in test()
DKeyGeneratorThread.java31 KeyGenerator kg = KeyGenerator.getInstance(algName); in test()
37 if(kg.getAlgorithm().toLowerCase().equals(algName.toLowerCase()) != true) { in test()
DKeyAgreementThread.java80 byte[] sk1 = kag1.getSecretKey(algName, bArray2); in test()
81 byte[] sk2 = kag2.getSecretKey(algName, bArray1); in test()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/
DAlgNameMapperTest.java90 String algName = AlgNameMapper.map2AlgName(NON_HARDCODED_ALIASES[i][0]); in testNon_Hardcoded_Aliases_Exist() local
91 assertNotNull(algName); in testNon_Hardcoded_Aliases_Exist()
93 algName.toUpperCase(Locale.US)); in testNon_Hardcoded_Aliases_Exist()
95 String oid = AlgNameMapper.map2OID(algName); in testNon_Hardcoded_Aliases_Exist()
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
DAlgNameMapper.java125 public static String map2OID(String algName) { in map2OID() argument
129 String result = alg2OidMap.get(algName.toUpperCase(Locale.US)); in map2OID()
137 return s.mapNameToOid(algName); in map2OID()
174 public static String getStandardName(String algName) { in getStandardName() argument
175 return algAliasesMap.get(algName.toUpperCase(Locale.US)); in getStandardName()
DAlgNameMapperSource.java24 public String mapNameToOid(String algName); in mapNameToOid() argument
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DSubjectPublicKeyInfo.java115 final String algName = algorithmID.getAlgorithmName(); in getPublicKey() local
116 publicKey = generateKeyForAlgorithm(keySpec, algName); in getPublicKey()
123 if (publicKey == null && !algOid.equals(algName)) { in getPublicKey()
/libcore/luni/src/main/java/java/security/
DSecurity.java92 public static String getAlgorithmProperty(String algName, String propName) { in getAlgorithmProperty() argument
93 if (algName == null || propName == null) { in getAlgorithmProperty()
96 String prop = "Alg." + propName + "." + algName; in getAlgorithmProperty()
/libcore/support/src/test/java/libcore/java/security/
DStandardNames.java927 public static Class<? extends KeySpec> getPrivateKeySpecClass(String algName) { in getPrivateKeySpecClass() argument
928 return PRIVATE_KEY_SPEC_CLASSES.get(algName); in getPrivateKeySpecClass()
931 public static Class<? extends KeySpec> getPublicKeySpecClass(String algName) { in getPublicKeySpecClass() argument
932 return PUBLIC_KEY_SPEC_CLASSES.get(algName); in getPublicKeySpecClass()
935 public static int getMinimumKeySize(String algName) { in getMinimumKeySize() argument
936 return MINIMUM_KEY_SIZE.get(algName); in getMinimumKeySize()