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
382 ASSERT_FALSE(x509_blob.get() == NULL) in TEST_P()
385 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_P()
389 ASSERT_EQ(EVP_PKEY_RSA, EVP_PKEY_type(actual.get()->type)) in TEST_P()
392 bssl::UniquePtr<RSA> rsa(EVP_PKEY_get1_RSA(actual.get())); in TEST_P()
393 ASSERT_FALSE(rsa.get() == NULL) in TEST_P()
396 ASSERT_EQ(static_cast<unsigned long>(RSA_F4), BN_get_word(rsa.get()->e)) in TEST_P()
399 ASSERT_EQ((GetParam() + 7) / 8, static_cast<uint32_t>(RSA_size(rsa.get()))) in TEST_P()
429 ASSERT_FALSE(x509_blob.get() == NULL) in TEST_P()
432 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_P()
436 ASSERT_EQ(EVP_PKEY_EC, EVP_PKEY_type(actual.get()->type)) in TEST_P()
439 bssl::UniquePtr<EC_KEY> ecKey(EVP_PKEY_get1_EC_KEY(actual.get())); in TEST_P()
440 ASSERT_FALSE(ecKey.get() == NULL) in TEST_P()
443 ASSERT_FALSE(EC_KEY_get0_group(ecKey.get()) == NULL) in TEST_P()
446 ASSERT_TRUE(EC_KEY_check_key(ecKey.get())) in TEST_P()
499 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_F()
503 ASSERT_EQ(EVP_PKEY_type(actual.get()->type), EVP_PKEY_RSA) in TEST_F()
511 bssl::UniquePtr<EVP_PKEY> expected(EVP_PKCS82PKEY(expectedPkcs8.get())); in TEST_F()
513 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get())) in TEST_F()
535 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_F()
539 ASSERT_EQ(EVP_PKEY_type(actual.get()->type), EVP_PKEY_EC) in TEST_F()
547 bssl::UniquePtr<EVP_PKEY> expected(EVP_PKCS82PKEY(expectedPkcs8.get())); in TEST_F()
549 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get())) in TEST_F()
578 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
581 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
600 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
603 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
632 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
635 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
641 sDevice->get_keypair_public(sDevice, key.get(), key.length(), in TEST_F()
651 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
654 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
660 sDevice->get_keypair_public(sDevice, key.get(), key.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()
684 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
692 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
820 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
823 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
837 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
841 testData.get(), testData.length(), in TEST_F()
860 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
863 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
876 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
880 testData.get(), testData.length(), in TEST_F()
893 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get()); in TEST_F()
897 bssl::UniquePtr<EC_KEY> ecKey(EVP_PKEY_get1_EC_KEY(expected.get())); in TEST_F()
899 …ASSERT_EQ(1, ECDSA_verify(0, testData.get(), testData.length(), sig_blob.get(), sig_blob.length(),… in TEST_F()
908 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
911 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
925 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
929 testData.get(), testData.length(), in TEST_F()
944 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
948 testData.get(), testData.length(), in TEST_F()
958 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
961 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
986 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
989 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1000 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1004 testData.get(), testData.length(), in TEST_F()
1014 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1017 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1028 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1031 ASSERT_TRUE(testSig.get() != NULL); in TEST_F()
1035 testData.get(), testData.length(), in TEST_F()
1036 testSig.get(), testSig.length())) in TEST_F()
1045 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1048 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1061 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1065 testData.get(), testData.length(), in TEST_F()
1072 testData.get(), testData.length(), in TEST_F()
1073 sig_blob.get(), sig_blob.length())) in TEST_F()
1082 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1085 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1107 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1110 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1133 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1136 ASSERT_TRUE(testSig.get() != NULL); in TEST_F()
1140 testData.get(), testData.length(), in TEST_F()
1141 testSig.get(), testSig.length())) in TEST_F()
1161 ASSERT_TRUE(testSig.get() != NULL); in TEST_F()
1166 testSig.get(), testSig.length())) in TEST_F()
1175 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1178 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1189 ASSERT_TRUE(testData.get() != NULL); in TEST_F()
1192 sDevice->verify_data(sDevice, &params, key.get(), key.length(), in TEST_F()
1193 testData.get(), testData.length(), in TEST_F()
1208 ASSERT_TRUE(testKey.get() != NULL); in TEST_F()
1211 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(), in TEST_F()
1217 ASSERT_TRUE(testKey2.get() != NULL); in TEST_F()
1220 sDevice->import_keypair(sDevice, testKey2.get(), testKey2.length(), in TEST_F()