Home
last modified time | relevance | path

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

/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
DEncryptedPrivateKeyInfoTest.java68 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/
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()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseSecretKeyFactory.java24 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()
DBaseKeyGenerator.java18 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()
DPBESecretKeyFactory.java51 … 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/
DJCESecretKeyFactory.java27 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 …]
DX509CertificateObject.java241 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/
DDefaultCMSSignatureAlgorithmNameGenerator.java118 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()
DCMSSignedHelper.java151 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/
DProvider.prop.dat2 serviceName.algName=className
3 serviceName.algName\ attrName= attrValue
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DOperatorHelper.java251 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/
DKeyFactory2Test.java383 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/
DDESede.java193 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()
DDES.java197 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/
DX509CRLImplTest.java74 private static String algName = "SHA1withDSA"; field in X509CRLImplTest
441 algName, crl.getSigAlgName()); in testGetSigAlgName()
DX509CertFactoryPerfTest.java69 static String algName = "SHA1withDSA"; field in X509CertFactoryPerfTest
570 algName, certificate.getSigAlgName()); in testGetSigAlgName()
DX509CertImplTest.java94 String algName = "SHA1withDSA"; field in X509CertImplTest
500 algName, certificate.getSigAlgName()); in testGetSigAlgName()
/external/bouncycastle/patches/
Dbcprov.patch8676 + return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pb…