Home | History | Annotate | Download | only in keymaster

Lines Matching defs:get

56         const uint8_t* mine = get();
57 const uint8_t* theirs = other.get();
82 const uint8_t* data = blob.get();
102 dev->delete_keypair(dev, get(), length());
147 uint8_t* get() const {
416 ASSERT_FALSE(x509_blob.get() == NULL)
419 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get());
423 ASSERT_EQ(EVP_PKEY_RSA, EVP_PKEY_type(actual.get()->type))
426 Unique_RSA rsa(EVP_PKEY_get1_RSA(actual.get()));
427 ASSERT_FALSE(rsa.get() == NULL)
430 ASSERT_EQ(static_cast<unsigned long>(RSA_F4), BN_get_word(rsa.get()->e))
433 ASSERT_EQ((GetParam() + 7) / 8, static_cast<uint32_t>(RSA_size(rsa.get())))
463 ASSERT_FALSE(x509_blob.get() == NULL)
466 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get());
470 ASSERT_EQ(EVP_PKEY_EC, EVP_PKEY_type(actual.get()->type))
473 Unique_EC_KEY ecKey(EVP_PKEY_get1_EC_KEY(actual.get()));
474 ASSERT_FALSE(ecKey.get() == NULL)
477 ASSERT_FALSE(EC_KEY_get0_group(ecKey.get()) == NULL)
480 ASSERT_TRUE(EC_KEY_check_key(ecKey.get()))
533 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get());
537 ASSERT_EQ(EVP_PKEY_type(actual.get()->type), EVP_PKEY_RSA)
545 Unique_EVP_PKEY expected(EVP_PKCS82PKEY(expectedPkcs8.get()));
547 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get()))
569 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get());
573 ASSERT_EQ(EVP_PKEY_type(actual.get()->type), EVP_PKEY_EC)
581 Unique_EVP_PKEY expected(EVP_PKCS82PKEY(expectedPkcs8.get()));
583 ASSERT_EQ(1, EVP_PKEY_cmp(expected.get(), actual.get()))
612 ASSERT_TRUE(testKey.get() != NULL);
615 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
634 ASSERT_TRUE(testKey.get() != NULL);
637 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
669 ASSERT_TRUE(testKey.get() != NULL);
672 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
678 sDevice->get_keypair_public(sDevice, key.get(), key.length(),
688 ASSERT_TRUE(testKey.get() != NULL);
691 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
697 sDevice->get_keypair_public(sDevice, key.get(), key.length(),
707 ASSERT_TRUE(testKey.get() != NULL);
710 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
721 ASSERT_TRUE(testKey.get() != NULL);
729 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
857 ASSERT_TRUE(testKey.get() != NULL);
860 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
874 ASSERT_TRUE(testData.get() != NULL);
878 testData.get(), testData.length(),
897 ASSERT_TRUE(testKey.get() != NULL);
900 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
913 ASSERT_TRUE(testData.get() != NULL);
917 testData.get(), testData.length(),
930 const unsigned char *tmp = static_cast<const unsigned char*>(x509_blob.get());
934 Unique_EC_KEY ecKey(EVP_PKEY_get1_EC_KEY(expected.get()));
936 ASSERT_EQ(1, ECDSA_verify(0, testData.get(), testData.length(), sig_blob.get(), sig_blob.length(), ecKey.get()))
945 ASSERT_TRUE(testKey.get() != NULL);
948 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
962 ASSERT_TRUE(testData.get() != NULL);
966 testData.get(), testData.length(),
981 ASSERT_TRUE(testData.get() != NULL);
985 testData.get(), testData.length(),
995 ASSERT_TRUE(testKey.get() != NULL);
998 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1023 ASSERT_TRUE(testKey.get() != NULL);
1026 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1040 ASSERT_TRUE(testData.get() != NULL);
1044 testData.get(), testData.length(),
1054 ASSERT_TRUE(testKey.get() != NULL);
1057 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1068 ASSERT_TRUE(testData.get() != NULL);
1071 ASSERT_TRUE(testSig.get() != NULL);
1075 testData.get(), testData.length(),
1076 testSig.get(), testSig.length()))
1085 ASSERT_TRUE(testKey.get() != NULL);
1088 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1101 ASSERT_TRUE(testData.get() != NULL);
1105 testData.get(), testData.length(),
1112 testData.get(), testData.length(),
1113 sig_blob.get(), sig_blob.length()))
1122 ASSERT_TRUE(testKey.get() != NULL);
1125 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1147 ASSERT_TRUE(testKey.get() != NULL);
1150 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1173 ASSERT_TRUE(testData.get() != NULL);
1176 ASSERT_TRUE(testSig.get() != NULL);
1180 testData.get(), testData.length(),
1181 testSig.get(), testSig.length()))
1201 ASSERT_TRUE(testSig.get() != NULL);
1206 testSig.get(), testSig.length()))
1215 ASSERT_TRUE(testKey.get() != NULL);
1218 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1229 ASSERT_TRUE(testData.get() != NULL);
1232 sDevice->verify_data(sDevice, &params, key.get(), key.length(),
1233 testData.get(), testData.length(),
1248 ASSERT_TRUE(testKey.get() != NULL);
1251 sDevice->import_keypair(sDevice, testKey.get(), testKey.length(),
1257 ASSERT_TRUE(testKey2.get() != NULL);
1260 sDevice->import_keypair(sDevice, testKey2.get(), testKey2.length(),