Lines Matching refs:ec_key
171 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_.get())); in BuildEcKey() local
172 if (!ec_key) { in BuildEcKey()
178 if (!EC_KEY_set_ex_data(ec_key.get(), ec_key_index_, key_data)) { in BuildEcKey()
195 if (!EC_KEY_set_group(ec_key.get(), EC_KEY_get0_group(public_ec_key.get())) || in BuildEcKey()
196 !EC_KEY_set_public_key(ec_key.get(), EC_KEY_get0_public_key(public_ec_key.get()))) { in BuildEcKey()
202 return ec_key.release(); in BuildEcKey()
213 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(key)); in GetData() local
214 return GetData(ec_key.get()); in GetData()
227 Keymaster1Engine::KeyData* Keymaster1Engine::GetData(const EC_KEY* ec_key) const { in GetData()
228 if (!ec_key) return nullptr; in GetData()
229 return reinterpret_cast<KeyData*>(EC_KEY_get_ex_data(ec_key, ec_key_index_)); in GetData()
318 unsigned int* sig_len, EC_KEY* ec_key) { in ecdsa_sign() argument
319 KeyData* key_data = instance_->GetData(ec_key); in ecdsa_sign()
323 size_t max_input_len = (ec_group_size_bits(ec_key) + 7) / 8; in ecdsa_sign()
332 *sig_len = std::min(output.data_length, ECDSA_size(ec_key)); in ecdsa_sign()