Home
last modified time | relevance | path

Searched refs:alg1 (Results 1 – 3 of 3) sorted by relevance

/external/apache-harmony/security/src/test/impl/java.injected/java/security/
DSecurity_ImplTest.java97 Set alg1; in testGetAlgorithms() local
100 alg1 = Security.getAlgorithms("AAAAAAAAAAAAAAA"); in testGetAlgorithms()
101 assertTrue("failed for non-existent service", alg1 != null); in testGetAlgorithms()
102 assertEquals("failed for non-existent service", 0, alg1.size()); in testGetAlgorithms()
104 alg1 = Security.getAlgorithms("SecureRandom"); in testGetAlgorithms()
106 assertEquals("different size", alg1.size(), alg2.size()); in testGetAlgorithms()
107 assertTrue("different content", alg2.containsAll(alg1)); in testGetAlgorithms()
113 alg1 = Security.getAlgorithms("MyService"); in testGetAlgorithms()
114 assertEquals("failed for MyService", 1, alg1.size()); in testGetAlgorithms()
115 assertTrue("failed for MyService", alg1.contains("MyAlgorithm")); in testGetAlgorithms()
/external/openssl/crypto/ec/
Dec_ameth.c585 X509_ALGOR *alg1, *alg2; in ec_pkey_ctrl() local
586 PKCS7_SIGNER_INFO_get0_algs(arg2, NULL, &alg1, &alg2); in ec_pkey_ctrl()
587 if (alg1 == NULL || alg1->algorithm == NULL) in ec_pkey_ctrl()
589 hnid = OBJ_obj2nid(alg1->algorithm); in ec_pkey_ctrl()
602 X509_ALGOR *alg1, *alg2; in ec_pkey_ctrl() local
604 &alg1, &alg2); in ec_pkey_ctrl()
605 if (alg1 == NULL || alg1->algorithm == NULL) in ec_pkey_ctrl()
607 hnid = OBJ_obj2nid(alg1->algorithm); in ec_pkey_ctrl()
/external/openssl/crypto/dsa/
Ddsa_ameth.c553 X509_ALGOR *alg1, *alg2; in dsa_pkey_ctrl() local
554 PKCS7_SIGNER_INFO_get0_algs(arg2, NULL, &alg1, &alg2); in dsa_pkey_ctrl()
555 if (alg1 == NULL || alg1->algorithm == NULL) in dsa_pkey_ctrl()
557 hnid = OBJ_obj2nid(alg1->algorithm); in dsa_pkey_ctrl()
570 X509_ALGOR *alg1, *alg2; in dsa_pkey_ctrl() local
571 CMS_SignerInfo_get0_algs(arg2, NULL, NULL, &alg1, &alg2); in dsa_pkey_ctrl()
572 if (alg1 == NULL || alg1->algorithm == NULL) in dsa_pkey_ctrl()
574 hnid = OBJ_obj2nid(alg1->algorithm); in dsa_pkey_ctrl()