Lines Matching refs:key_id

61     char *key_id = reinterpret_cast<char *>(*from_d);  in key_id_dup()  local
62 if (key_id != nullptr) { in key_id_dup()
63 *from_d = strdup(key_id); in key_id_dup()
75 char *key_id = reinterpret_cast<char *>(ptr); in key_id_free() local
76 free(key_id); in key_id_free()
96 const char *key_id = rsa_get_key_id(rsa); in rsa_private_transform() local
97 if (key_id == nullptr) { in rsa_private_transform()
104 int32_t ret = g_keystore_backend->sign(key_id, in, len, &reply, &reply_len); in rsa_private_transform()
150 const char *key_id = ecdsa_get_key_id(ec_key); in ecdsa_sign() local
151 if (key_id == nullptr) { in ecdsa_sign()
161 key_id, digest, digest_len, &reply, &reply_len); in ecdsa_sign()
257 static EVP_PKEY *wrap_rsa(const char *key_id, const RSA *public_rsa) { in wrap_rsa() argument
263 char *key_id_copy = strdup(key_id); in wrap_rsa()
293 static EVP_PKEY *wrap_ecdsa(const char *key_id, const EC_KEY *public_ecdsa) { in wrap_ecdsa() argument
304 char *key_id_copy = strdup(key_id); in wrap_ecdsa()
329 EVP_PKEY* EVP_PKEY_from_keystore(const char* key_id) __attribute__((visibility("default")));
335 EVP_PKEY* EVP_PKEY_from_keystore(const char* key_id) { in EVP_PKEY_from_keystore() argument
336 ALOGV("EVP_PKEY_from_keystore(\"%s\")", key_id); in EVP_PKEY_from_keystore()
342 int32_t ret = g_keystore_backend->get_pubkey(key_id, &pubkey, &pubkey_len); in EVP_PKEY_from_keystore()
362 result = wrap_rsa(key_id, public_rsa.get()); in EVP_PKEY_from_keystore()
367 result = wrap_ecdsa(key_id, public_ecdsa.get()); in EVP_PKEY_from_keystore()