/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | EncryptedPrivateKeyInfoTest.java | 68 private static final String[][] algName = { field in EncryptedPrivateKeyInfoTest 1062 for (int i = 0; i < algName.length; i++) { in test_ROUNDTRIP_GetKeySpecCipher01() 1065 TestDataGenerator g = new TestDataGenerator(algName[i][0], in test_ROUNDTRIP_GetKeySpecCipher01() 1066 algName[i][1], privateKeyInfo, null); in test_ROUNDTRIP_GetKeySpecCipher01() 1071 epki = new EncryptedPrivateKeyInfo(algName[i][0], g.ct()); in test_ROUNDTRIP_GetKeySpecCipher01() 1082 fail(algName[i][0] + " != " + algName[i][1]); in test_ROUNDTRIP_GetKeySpecCipher01() 1085 fail(algName[i][0] + ", " + algName[i][1] + e + "\n"); in test_ROUNDTRIP_GetKeySpecCipher01() 1101 for (int i = 0; i < algName.length; i++) { in test_ROUNDTRIP_GetKeySpecCipher02() 1104 TestDataGenerator g = new TestDataGenerator(algName[i][0], in test_ROUNDTRIP_GetKeySpecCipher02() 1105 algName[i][1], privateKeyInfoDamaged, null); in test_ROUNDTRIP_GetKeySpecCipher02() [all …]
|
/external/apache-harmony/crypto/src/test/support/common/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()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | BaseSecretKeyFactory.java | 24 protected String algName; field in BaseSecretKeyFactory 28 String algName, in BaseSecretKeyFactory() argument 31 this.algName = algName; in BaseSecretKeyFactory() 63 return new SecretKeySpec(key.getEncoded(), algName); in engineGetKeySpec() 92 if (!key.getAlgorithm().equalsIgnoreCase(algName)) in engineTranslateKey() 94 throw new InvalidKeyException("Key not of type " + algName + "."); in engineTranslateKey() 97 return new SecretKeySpec(key.getEncoded(), algName); in engineTranslateKey() 144 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret() 168 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
|
D | BaseKeyGenerator.java | 18 protected String algName; field in BaseKeyGenerator 26 String algName, in BaseKeyGenerator() argument 30 this.algName = algName; in BaseKeyGenerator() 81 return new SecretKeySpec(engine.generateKey(), algName); in engineGenerateKey()
|
D | PBESecretKeyFactory.java | 51 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret() 63 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | JCESecretKeyFactory.java | 27 protected String algName; field in JCESecretKeyFactory 31 String algName, in JCESecretKeyFactory() argument 34 this.algName = algName; in JCESecretKeyFactory() 66 return new SecretKeySpec(key.getEncoded(), algName); in engineGetKeySpec() 95 if (!key.getAlgorithm().equalsIgnoreCase(algName)) in engineTranslateKey() 97 throw new InvalidKeyException("Key not of type " + algName + "."); in engineTranslateKey() 100 return new SecretKeySpec(key.getEncoded(), algName); in engineTranslateKey() 145 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret() 157 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret() 202 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret() [all …]
|
D | X509CertificateObject.java | 241 String algName = prov.getProperty("Alg.Alias.Signature." + this.getSigAlgOID()); in getSigAlgName() local 243 if (algName != null) in getSigAlgName() 245 return algName; in getSigAlgName() 256 String algName = provs[i].getProperty("Alg.Alias.Signature." + this.getSigAlgOID()); in getSigAlgName() local 257 if (algName != null) in getSigAlgName() 259 return algName; in getSigAlgName()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | DefaultCMSSignatureAlgorithmNameGenerator.java | 118 String algName = (String)digestAlgs.get(digestAlgOID); in getDigestAlgName() local 120 if (algName != null) in getDigestAlgName() 122 return algName; in getDigestAlgName() 136 String algName = (String)encryptionAlgs.get(encryptionAlgOID); in getEncryptionAlgName() local 138 if (algName != null) in getEncryptionAlgName() 140 return algName; in getEncryptionAlgName()
|
D | CMSSignedHelper.java | 151 String algName = (String)digestAlgs.get(digestAlgOID); in getDigestAlgName() local 153 if (algName != null) in getDigestAlgName() 155 return algName; in getDigestAlgName() 169 String algName = (String)encryptionAlgs.get(encryptionAlgOID); in getEncryptionAlgName() local 171 if (algName != null) in getEncryptionAlgName() 173 return algName; in getEncryptionAlgName()
|
/external/apache-harmony/security/src/test/resources/java/security/ |
D | Provider.prop.dat | 2 serviceName.algName=className 3 serviceName.algName\ attrName= attrValue
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | OperatorHelper.java | 251 String algName = getSignatureName(algorithm); in createRawSignature() local 253 algName = "NONE" + algName.substring(algName.indexOf("WITH")); in createRawSignature() 255 sig = helper.createSignature(algName); in createRawSignature() 262 AlgorithmParameters params = helper.createAlgorithmParameters(algName); in createRawSignature()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | KeyFactory2Test.java | 383 private Class getPrivateKeySpecClass(String algName) { in getPrivateKeySpecClass() argument 384 if (algName.equals("RSA")) { in getPrivateKeySpecClass() 387 if (algName.equals("DSA")) { in getPrivateKeySpecClass() 397 private Class getPublicKeySpecClass(String algName) { in getPublicKeySpecClass() argument 398 if (algName.equals("RSA")) { in getPublicKeySpecClass() 401 if (algName.equals("DSA")) { in getPublicKeySpecClass()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/ |
D | DESede.java | 193 return new SecretKeySpec(k, algName); in engineGenerateKey() 197 return new SecretKeySpec(engine.generateKey(), algName); in engineGenerateKey() 302 return new SecretKeySpec(key.getEncoded(), algName); in engineGetKeySpec()
|
D | DES.java | 197 return new SecretKeySpec(engine.generateKey(), algName); in engineGenerateKey() 225 return new SecretKeySpec(key.getEncoded(), algName); in engineGetKeySpec()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/cert/ |
D | X509CRLImplTest.java | 74 private static String algName = "SHA1withDSA"; field in X509CRLImplTest 441 algName, crl.getSigAlgName()); in testGetSigAlgName()
|
D | X509CertFactoryPerfTest.java | 69 static String algName = "SHA1withDSA"; field in X509CertFactoryPerfTest 570 algName, certificate.getSigAlgName()); in testGetSigAlgName()
|
D | X509CertImplTest.java | 94 String algName = "SHA1withDSA"; field in X509CertImplTest 500 algName, certificate.getSigAlgName()); in testGetSigAlgName()
|
/external/bouncycastle/patches/ |
D | bcprov.patch | 8676 + return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pb…
|