Home
last modified time | relevance | path

Searched refs:algorithmName (Results 1 – 25 of 56) sorted by relevance

123

/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DAlgorithmParameterAsymmetricHelper.java30 private final String algorithmName; field in AlgorithmParameterAsymmetricHelper
32 public AlgorithmParameterAsymmetricHelper(String algorithmName) { in AlgorithmParameterAsymmetricHelper() argument
33 this.algorithmName = algorithmName; in AlgorithmParameterAsymmetricHelper()
37 return algorithmName.contains("/") in baseName()
38 ? algorithmName.substring(0, algorithmName.indexOf('/')) in baseName()
39 : algorithmName; in baseName()
48 Cipher cipher = Cipher.getInstance(algorithmName); in test()
DAlgorithmParameterSignatureHelper.java30 private final String algorithmName; field in AlgorithmParameterSignatureHelper
35 public AlgorithmParameterSignatureHelper(String algorithmName, Class<T> parameterSpecCla1ss) { in AlgorithmParameterSignatureHelper() argument
36 this.algorithmName = algorithmName; in AlgorithmParameterSignatureHelper()
37 this.keyPairAlgorithmName = algorithmName; in AlgorithmParameterSignatureHelper()
41 public AlgorithmParameterSignatureHelper(String algorithmName, String keyPairAlgorithmName, in AlgorithmParameterSignatureHelper() argument
43 this.algorithmName = algorithmName; in AlgorithmParameterSignatureHelper()
50 Signature signature = Signature.getInstance(algorithmName); in test()
DAlgorithmParameterSymmetricHelper.java30 private final String algorithmName; field in AlgorithmParameterSymmetricHelper
34 public AlgorithmParameterSymmetricHelper(String algorithmName, int keySize) { in AlgorithmParameterSymmetricHelper() argument
35 this.algorithmName = algorithmName; in AlgorithmParameterSymmetricHelper()
39 public AlgorithmParameterSymmetricHelper(String algorithmName, String blockmode, int keySize) { in AlgorithmParameterSymmetricHelper() argument
40 this(algorithmName, keySize); in AlgorithmParameterSymmetricHelper()
46 KeyGenerator generator = KeyGenerator.getInstance(algorithmName); in test()
50 String transformation = algorithmName; in test()
DAlgorithmParameterKeyAgreementHelper.java28 private final String algorithmName; field in AlgorithmParameterKeyAgreementHelper
30 public AlgorithmParameterKeyAgreementHelper(String algorithmName) { in AlgorithmParameterKeyAgreementHelper() argument
31 this.algorithmName = algorithmName; in AlgorithmParameterKeyAgreementHelper()
36 KeyPairGenerator generator = KeyPairGenerator.getInstance(algorithmName); in test()
40 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
DAbstractKeyFactoryTest.java33 private final String algorithmName; field in AbstractKeyFactoryTest
37 protected AbstractKeyFactoryTest(String algorithmName, in AbstractKeyFactoryTest() argument
40 this.algorithmName = algorithmName; in AbstractKeyFactoryTest()
48 .withAlgorithm(algorithmName) in testKeyFactory()
72 .withAlgorithm(algorithmName) in testKeyFactory()
101 DefaultKeys.getPublicKey(algorithmName), in getKeys()
102 DefaultKeys.getPrivateKey(algorithmName) in getKeys()
DAbstractAlgorithmParametersTest.java24 private final String algorithmName; field in AbstractAlgorithmParametersTest
28 public AbstractAlgorithmParametersTest(String algorithmName, in AbstractAlgorithmParametersTest() argument
30 this.algorithmName = algorithmName; in AbstractAlgorithmParametersTest()
37 AlgorithmParameters algorithmParameters = AlgorithmParameters.getInstance(algorithmName); in testAlgorithmParameters()
DAbstractAlgorithmParameterGeneratorTest.java26 private final String algorithmName; field in AbstractAlgorithmParameterGeneratorTest
29 …protected AbstractAlgorithmParameterGeneratorTest(String algorithmName, TestHelper<AlgorithmParame… in AbstractAlgorithmParameterGeneratorTest() argument
30 this.algorithmName = algorithmName; in AbstractAlgorithmParameterGeneratorTest()
36 … AlgorithmParameterGenerator generator = AlgorithmParameterGenerator.getInstance(algorithmName); in testAlgorithmParameterGenerator()
DKeyAgreementHelper.java28 private final String algorithmName; field in KeyAgreementHelper
30 public KeyAgreementHelper(String algorithmName) { in KeyAgreementHelper() argument
31 this.algorithmName = algorithmName; in KeyAgreementHelper()
39 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
DAbstractKeyPairGeneratorTest.java28 private final String algorithmName; field in AbstractKeyPairGeneratorTest
33 protected AbstractKeyPairGeneratorTest(String algorithmName, TestHelper<KeyPair> helper) { in AbstractKeyPairGeneratorTest() argument
34 this.algorithmName = algorithmName; in AbstractKeyPairGeneratorTest()
40 generator = KeyPairGenerator.getInstance(algorithmName); in setUp()
DDefaultKeys.java224 …public static PrivateKey getPrivateKey(String algorithmName) throws NoSuchAlgorithmException, Inva… in getPrivateKey() argument
226 KeyFactory factory = KeyFactory.getInstance(algorithmName); in getPrivateKey()
227 return factory.generatePrivate(keys.get(algorithmName + "_private")); in getPrivateKey()
230 …public static PublicKey getPublicKey(String algorithmName) throws NoSuchAlgorithmException, Invali… in getPublicKey() argument
232 KeyFactory factory = KeyFactory.getInstance(algorithmName); in getPublicKey()
233 return factory.generatePublic(keys.get(algorithmName + "_public")); in getPublicKey()
DSignatureHelper.java28 private final String algorithmName; field in SignatureHelper
31 public SignatureHelper(String algorithmName) { in SignatureHelper() argument
32 this.algorithmName = algorithmName; in SignatureHelper()
41 Signature signature = Signature.getInstance(algorithmName); in test()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DAlgorithmParameterAsymmetricHelper.java34 private final String algorithmName; field in AlgorithmParameterAsymmetricHelper
36 public AlgorithmParameterAsymmetricHelper(String algorithmName) { in AlgorithmParameterAsymmetricHelper() argument
37 this.algorithmName = algorithmName; in AlgorithmParameterAsymmetricHelper()
41 return algorithmName.contains("/") in baseName()
42 ? algorithmName.substring(0, algorithmName.indexOf('/')) in baseName()
43 : algorithmName; in baseName()
52 Cipher cipher = Cipher.getInstance(algorithmName); in test()
DAlgorithmParameterSignatureHelper.java34 private final String algorithmName; field in AlgorithmParameterSignatureHelper
39 public AlgorithmParameterSignatureHelper(String algorithmName, Class<T> parameterSpecCla1ss) { in AlgorithmParameterSignatureHelper() argument
40 this.algorithmName = algorithmName; in AlgorithmParameterSignatureHelper()
41 this.keyPairAlgorithmName = algorithmName; in AlgorithmParameterSignatureHelper()
46 String algorithmName, String keyPairAlgorithmName, Class<T> parameterSpecCla1ss) { in AlgorithmParameterSignatureHelper() argument
47 this.algorithmName = algorithmName; in AlgorithmParameterSignatureHelper()
54 Signature signature = Signature.getInstance(algorithmName); in test()
DAlgorithmParameterSymmetricHelper.java34 private final String algorithmName; field in AlgorithmParameterSymmetricHelper
38 public AlgorithmParameterSymmetricHelper(String algorithmName, int keySize) { in AlgorithmParameterSymmetricHelper() argument
39 this.algorithmName = algorithmName; in AlgorithmParameterSymmetricHelper()
43 public AlgorithmParameterSymmetricHelper(String algorithmName, String blockmode, int keySize) { in AlgorithmParameterSymmetricHelper() argument
44 this(algorithmName, keySize); in AlgorithmParameterSymmetricHelper()
50 KeyGenerator generator = KeyGenerator.getInstance(algorithmName); in test()
54 String transformation = algorithmName; in test()
DAlgorithmParameterKeyAgreementHelper.java32 private final String algorithmName; field in AlgorithmParameterKeyAgreementHelper
34 public AlgorithmParameterKeyAgreementHelper(String algorithmName) { in AlgorithmParameterKeyAgreementHelper() argument
35 this.algorithmName = algorithmName; in AlgorithmParameterKeyAgreementHelper()
40 KeyPairGenerator generator = KeyPairGenerator.getInstance(algorithmName); in test()
44 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
DAbstractKeyFactoryTest.java37 private final String algorithmName; field in AbstractKeyFactoryTest
41 protected AbstractKeyFactoryTest(String algorithmName, Class<PublicKeySpec> publicKeySpecClass, in AbstractKeyFactoryTest() argument
43 this.algorithmName = algorithmName; in AbstractKeyFactoryTest()
51 .withAlgorithm(algorithmName) in testKeyFactory()
76 .withAlgorithm(algorithmName) in testKeyFactory()
110 DefaultKeys.getPublicKey(algorithmName), DefaultKeys.getPrivateKey(algorithmName))); in getKeys()
DAbstractAlgorithmParametersTest.java28 private final String algorithmName; field in AbstractAlgorithmParametersTest
32 public AbstractAlgorithmParametersTest(String algorithmName, in AbstractAlgorithmParametersTest() argument
34 this.algorithmName = algorithmName; in AbstractAlgorithmParametersTest()
41 AlgorithmParameters algorithmParameters = AlgorithmParameters.getInstance(algorithmName); in testAlgorithmParameters()
DAbstractAlgorithmParameterGeneratorTest.java30 private final String algorithmName; field in AbstractAlgorithmParameterGeneratorTest
33 …protected AbstractAlgorithmParameterGeneratorTest(String algorithmName, TestHelper<AlgorithmParame… in AbstractAlgorithmParameterGeneratorTest() argument
34 this.algorithmName = algorithmName; in AbstractAlgorithmParameterGeneratorTest()
40 … AlgorithmParameterGenerator generator = AlgorithmParameterGenerator.getInstance(algorithmName); in testAlgorithmParameterGenerator()
DKeyAgreementHelper.java32 private final String algorithmName; field in KeyAgreementHelper
34 public KeyAgreementHelper(String algorithmName) { in KeyAgreementHelper() argument
35 this.algorithmName = algorithmName; in KeyAgreementHelper()
43 KeyAgreement keyAgreement = KeyAgreement.getInstance(algorithmName); in test()
DAbstractKeyPairGeneratorTest.java32 private final String algorithmName; field in AbstractKeyPairGeneratorTest
37 protected AbstractKeyPairGeneratorTest(String algorithmName, TestHelper<KeyPair> helper) { in AbstractKeyPairGeneratorTest() argument
38 this.algorithmName = algorithmName; in AbstractKeyPairGeneratorTest()
44 generator = KeyPairGenerator.getInstance(algorithmName); in setUp()
DDefaultKeys.java308 …public static PrivateKey getPrivateKey(String algorithmName) throws NoSuchAlgorithmException, Inva… in getPrivateKey() argument
310 KeyFactory factory = KeyFactory.getInstance(algorithmName); in getPrivateKey()
311 return factory.generatePrivate(keys.get(algorithmName + "_private")); in getPrivateKey()
314 …public static PublicKey getPublicKey(String algorithmName) throws NoSuchAlgorithmException, Invali… in getPublicKey() argument
316 KeyFactory factory = KeyFactory.getInstance(algorithmName); in getPublicKey()
317 return factory.generatePublic(keys.get(algorithmName + "_public")); in getPublicKey()
/external/guava/guava/src/com/google/common/hash/
DMessageDigestHashFunction.java44 MessageDigestHashFunction(String algorithmName, String toString) { in MessageDigestHashFunction() argument
45 this.prototype = getMessageDigest(algorithmName); in MessageDigestHashFunction()
51 MessageDigestHashFunction(String algorithmName, int bytes, String toString) { in MessageDigestHashFunction() argument
53 this.prototype = getMessageDigest(algorithmName); in MessageDigestHashFunction()
80 private static MessageDigest getMessageDigest(String algorithmName) { in getMessageDigest() argument
82 return MessageDigest.getInstance(algorithmName); in getMessageDigest()
101 private final String algorithmName; field in MessageDigestHashFunction.SerializedForm
105 private SerializedForm(String algorithmName, int bytes, String toString) { in SerializedForm() argument
106 this.algorithmName = algorithmName; in SerializedForm()
112 return new MessageDigestHashFunction(algorithmName, bytes, toString); in readResolve()
/external/guava/android/guava/src/com/google/common/hash/
DMessageDigestHashFunction.java44 MessageDigestHashFunction(String algorithmName, String toString) { in MessageDigestHashFunction() argument
45 this.prototype = getMessageDigest(algorithmName); in MessageDigestHashFunction()
51 MessageDigestHashFunction(String algorithmName, int bytes, String toString) { in MessageDigestHashFunction() argument
53 this.prototype = getMessageDigest(algorithmName); in MessageDigestHashFunction()
80 private static MessageDigest getMessageDigest(String algorithmName) { in getMessageDigest() argument
82 return MessageDigest.getInstance(algorithmName); in getMessageDigest()
101 private final String algorithmName; field in MessageDigestHashFunction.SerializedForm
105 private SerializedForm(String algorithmName, int bytes, String toString) { in SerializedForm() argument
106 this.algorithmName = algorithmName; in SerializedForm()
112 return new MessageDigestHashFunction(algorithmName, bytes, toString); in readResolve()
/external/guava/guava-tests/test/com/google/common/hash/
DMessageDigestHashFunctionTest.java97 private static void assertMessageDigestHashing(byte[] input, String algorithmName) { in assertMessageDigestHashing() argument
99 MessageDigest digest = MessageDigest.getInstance(algorithmName); in assertMessageDigestHashing()
101 HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input)); in assertMessageDigestHashing()
105 new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input)); in assertMessageDigestHashing()
109 new MessageDigestHashFunction(algorithmName, maxSize + 1, algorithmName); in assertMessageDigestHashing()
/external/guava/android/guava-tests/test/com/google/common/hash/
DMessageDigestHashFunctionTest.java97 private static void assertMessageDigestHashing(byte[] input, String algorithmName) { in assertMessageDigestHashing() argument
99 MessageDigest digest = MessageDigest.getInstance(algorithmName); in assertMessageDigestHashing()
101 HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input)); in assertMessageDigestHashing()
105 new MessageDigestHashFunction(algorithmName, bytes, algorithmName).hashBytes(input)); in assertMessageDigestHashing()
109 new MessageDigestHashFunction(algorithmName, maxSize + 1, algorithmName); in assertMessageDigestHashing()

123