Lines Matching refs:get

57         const uint8_t* mine = get();  in operator ==()
58 const uint8_t* theirs = other.get(); in operator ==()
83 const uint8_t* data = blob.get(); in operator <<()
103 dev->delete_keypair(dev, get(), length()); in ~UniqueKey()
148 uint8_t* get() const { in get() function in android::UniqueReadOnlyBlob
417 ASSERT_FALSE(x509_blob.get() == NULL) in TEST_P()
420 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_P()
424 ASSERT_EQ(EVP_PKEY_RSA, EVP_PKEY_type(actual.get()->type)) in TEST_P()
427 Unique_RSA rsa(EVP_PKEY_get1_RSA(actual.get())); in TEST_P()
428 ASSERT_FALSE(rsa.get() == NULL) in TEST_P()
431 ASSERT_EQ(static_cast<unsigned long>(RSA_F4), BN_get_word(rsa.get()->e)) in TEST_P()
434 ASSERT_EQ((GetParam() + 7) / 8, static_cast<uint32_t>(RSA_size(rsa.get()))) in TEST_P()
464 ASSERT_FALSE(x509_blob.get() == NULL) in TEST_P()
467 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_P()
471 ASSERT_EQ(EVP_PKEY_EC, EVP_PKEY_type(actual.get()->type)) in TEST_P()
474 Unique_EC_KEY ecKey(EVP_PKEY_get1_EC_KEY(actual.get())); in TEST_P()
475 ASSERT_FALSE(ecKey.get() == NULL) in TEST_P()
478 ASSERT_FALSE(EC_KEY_get0_group(ecKey.get()) == NULL) in TEST_P()
481 ASSERT_TRUE(EC_KEY_check_key(ecKey.get())) in TEST_P()
534 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_F()
538 ASSERT_EQ(EVP_PKEY_type(actual.get()->type), EVP_PKEY_RSA) in TEST_F()
546 Unique_EVP_PKEY expected(EVP_PKCS82PKEY(expectedPkcs8.get())); in TEST_F()
548 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get())) in TEST_F()
570 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_F()
574 ASSERT_EQ(EVP_PKEY_type(actual.get()->type), EVP_PKEY_EC) in TEST_F()
582 Unique_EVP_PKEY expected(EVP_PKCS82PKEY(expectedPkcs8.get())); in TEST_F()
584 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get())) in TEST_F()
613 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
616 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
635 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
638 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
670 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
673 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
679 sDevice->get_keypair_public(sDevice, key.get(), key.length(), in TEST_F()
689 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
692 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
698 sDevice->get_keypair_public(sDevice, key.get(), key.length(), in TEST_F()
708 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
711 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
722 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
730 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
858 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
861 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
875 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
879 testData.get(), testData.length(), in TEST_F()
898 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
901 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
914 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
918 testData.get(), testData.length(), in TEST_F()
931 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_F()
935 Unique_EC_KEY ecKey(EVP_PKEY_get1_EC_KEY(expected.get())); in TEST_F()
937 …ASSERT_EQ(1, ECDSA_verify(0, testData.get(), testData.length(), sig_blob.get(), sig_blob.length(),… in TEST_F()
946 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
949 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
963 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
967 testData.get(), testData.length(), in TEST_F()
982 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
986 testData.get(), testData.length(), in TEST_F()
996 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
999 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1024 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1027 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1041 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1045 testData.get(), testData.length(), in TEST_F()
1055 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1058 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1069 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1072 ASSERT_TRUE(testSig.get() != NULL); in TEST_F()
1076 testData.get(), testData.length(), in TEST_F()
1077 testSig.get(), testSig.length())) in TEST_F()
1086 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1089 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1102 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1106 testData.get(), testData.length(), in TEST_F()
1113 testData.get(), testData.length(), in TEST_F()
1114 sig_blob.get(), sig_blob.length())) in TEST_F()
1123 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1126 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1148 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1151 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1174 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1177 ASSERT_TRUE(testSig.get() != NULL); in TEST_F()
1181 testData.get(), testData.length(), in TEST_F()
1182 testSig.get(), testSig.length())) in TEST_F()
1202 ASSERT_TRUE(testSig.get() != NULL); in TEST_F()
1207 testSig.get(), testSig.length())) in TEST_F()
1216 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1219 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1230 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1233 sDevice->verify_data(sDevice, &params, key.get(), key.length(), in TEST_F()
1234 testData.get(), testData.length(), in TEST_F()
1249 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1252 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1258 ASSERT_TRUE(testKey2.get() != NULL); in TEST_F()
1261 sDevice->import_keypair(sDevice, testKey2.get(), testKey2.length(), in TEST_F()