Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 – 12 of 12) sorted by relevance

/system/security/keystore-engine/
Dkeystore_backend_hidl.cpp65 const char *key_id, uint8_t** pubkey, size_t* pubkey_len) { in get_pubkey() argument
66 if (key_id == NULL || pubkey == NULL || pubkey_len == NULL) { in get_pubkey()
82 *pubkey = publicKey.releaseData(); in get_pubkey()
Dkeystore_backend_binder.cpp63 const char *key_id, uint8_t** pubkey, size_t* pubkey_len) { in get_pubkey() argument
79 *pubkey = pubkey_vec.releaseData(); in get_pubkey()
Dandroid_engine.cpp396 uint8_t *pubkey = NULL; in EVP_PKEY_from_keystore() local
398 int32_t ret = g_keystore_backend->get_pubkey(key_id, &pubkey, &pubkey_len); in EVP_PKEY_from_keystore()
402 } else if (ret != 0 || pubkey == NULL) { in EVP_PKEY_from_keystore()
407 const uint8_t *inp = pubkey; in EVP_PKEY_from_keystore()
Dkeystore_backend.h33 virtual int32_t get_pubkey(const char *key_id, uint8_t** pubkey,
Dkeystore_backend_hidl.h34 int32_t get_pubkey(const char *key_id, uint8_t** pubkey,
Dkeystore_backend_binder.h34 int32_t get_pubkey(const char *key_id, uint8_t** pubkey,
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp43 hidl_vec<uint8_t> pubkey; in getPublicKey() local
44 auto ret = service->get_pubkey(String16(keyId.c_str()), &pubkey); in getPublicKey()
49 _hidl_cb(KeystoreStatusCode::SUCCESS, pubkey); in getPublicKey()
/system/core/adb/
Dadb_auth_host.cpp159 unsigned char* pubkey = nullptr; in hash_key() local
160 int len = i2d_RSA_PUBKEY(key, &pubkey); in hash_key()
168 SHA256(pubkey, len, reinterpret_cast<unsigned char*>(&result[0])); in hash_key()
169 OPENSSL_free(pubkey); in hash_key()
/system/keymaster/
Dsoft_keymaster_context.cpp911 keymaster_error_t SoftKeymasterContext::FakeKeyAuthorizations(EVP_PKEY* pubkey, in FakeKeyAuthorizations() argument
917 switch (EVP_PKEY_type(pubkey->type)) { in FakeKeyAuthorizations()
938 unique_ptr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(pubkey)); in FakeKeyAuthorizations()
962 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(pubkey)); in FakeKeyAuthorizations()
Dandroid_keymaster_test.cpp1151 string pubkey; in TEST_P() local
1152 EXPECT_EQ(KM_ERROR_OK, ExportKey(KM_KEY_FORMAT_X509, &pubkey)); in TEST_P()
1154 const uint8_t* p = reinterpret_cast<const uint8_t*>(pubkey.data()); in TEST_P()
1156 d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P()
1246 string pubkey; in TEST_P() local
1247 EXPECT_EQ(KM_ERROR_OK, ExportKey(KM_KEY_FORMAT_X509, &pubkey)); in TEST_P()
1249 const uint8_t* p = reinterpret_cast<const uint8_t*>(pubkey.data()); in TEST_P()
1251 d2i_PUBKEY(nullptr /* alloc new */, &p, pubkey.size())); in TEST_P()
/system/keymaster/include/keymaster/
Dsoft_keymaster_context.h112 keymaster_error_t FakeKeyAuthorizations(EVP_PKEY* pubkey, AuthorizationSet* hw_enforced,
/system/security/keystore/
DIKeystoreService.cpp426 KeyStoreServiceReturnCode get_pubkey(const String16& name, hidl_vec<uint8_t>* pubkey) override { in get_pubkey() argument
441 if (pubkey) *pubkey = resultKey.value(); in get_pubkey()