Home
last modified time | relevance | path

Searched refs:EC_KEY (Results 1 – 25 of 28) sorted by relevance

12

/aosp12/bootable/recovery/install/include/install/
H A Dverifier.h40 void operator()(EC_KEY* ec_key) const { in operator()
52 std::unique_ptr<EC_KEY, ECKEYDeleter>&& ec_) in Certificate()
59 std::unique_ptr<EC_KEY, ECKEYDeleter> ec;
90 bool CheckECKey(const std::unique_ptr<EC_KEY, ECKEYDeleter>& ec_key);
/aosp12/system/security/keystore2/src/crypto/
H A Dcrypto.hpp54 int ECDHComputeKey(void *out, const EC_POINT *pub_key, const EC_KEY *priv_key);
56 EC_KEY* ECKEYGenerateKey();
58 size_t ECKEYMarshalPrivateKey(const EC_KEY *priv_key, uint8_t *buf, size_t len);
60 EC_KEY* ECKEYParsePrivateKey(const uint8_t *buf, size_t len);
H A Dcrypto.cpp222 int ECDHComputeKey(void* out, const EC_POINT* pub_key, const EC_KEY* priv_key) { in ECDHComputeKey()
226 EC_KEY* ECKEYGenerateKey() { in ECKEYGenerateKey()
227 EC_KEY* key = EC_KEY_new(); in ECKEYGenerateKey()
239 size_t ECKEYMarshalPrivateKey(const EC_KEY* priv_key, uint8_t* buf, size_t len) { in ECKEYMarshalPrivateKey()
251 EC_KEY* ECKEYParsePrivateKey(const uint8_t* buf, size_t len) { in ECKEYParsePrivateKey()
H A Dlib.rs25 EC_POINT_free, HKDFExpand, HKDFExtract, EC_KEY, EC_MAX_BYTES, EC_POINT, EVP_MAX_MD_SIZE,
267 pub struct ECKey(*mut EC_KEY);
H A DAndroid.bp79 "--allowlist-type", "EC_KEY",
/aosp12/system/keymaster/include/keymaster/km_openssl/
H A Dnist_curve_key_exchange.h41 NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error);
58 EC_KEY* private_key() { return private_key_.release(); } in private_key()
63 UniquePtr<EC_KEY, EC_KEY_Delete> private_key_;
H A Dkem.h47 virtual bool Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) = 0;
48 virtual bool Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key,
H A Decies_kem.h47 bool Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) override;
48 bool Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key, size_t encrypted_key_len,
H A Dec_key.h39 EC_KEY* key() const { return ec_key_.get(); } in key()
42 EcKey(EC_KEY* ec_key, AuthorizationSet hw_enforced, AuthorizationSet sw_enforced, in EcKey()
H A Dopenssl_utils.h61 DEFINE_OPENSSL_OBJECT_POINTER(EC_KEY)
102 size_t ec_group_size_bits(EC_KEY* ec_key);
/aosp12/system/keymaster/include/keymaster/legacy_support/
H A Dkeymaster1_engine.h71 EC_KEY* BuildEcKey(const KeymasterKeyBlob& blob, const AuthorizationSet& additional_params,
76 KeyData* GetData(const EC_KEY* rsa) const;
108 unsigned int* sig_len, EC_KEY* ec_key);
H A Dec_keymaster1_key.h78 EcdsaKeymaster1Key(EC_KEY* ecdsa_key, AuthorizationSet&& hw_enforced, in EcdsaKeymaster1Key()
/aosp12/system/keymaster/legacy_support/
H A Dkeymaster1_engine.cpp167 EC_KEY* Keymaster1Engine::BuildEcKey(const KeymasterKeyBlob& blob, in BuildEcKey()
171 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new_method(engine_.get())); in BuildEcKey()
189 unique_ptr<EC_KEY, EC_KEY_Delete> public_ec_key(EVP_PKEY_get1_EC_KEY(pkey.get())); in BuildEcKey()
213 unique_ptr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(key)); in GetData()
227 Keymaster1Engine::KeyData* Keymaster1Engine::GetData(const EC_KEY* ec_key) const { in GetData()
318 unsigned int* sig_len, EC_KEY* ec_key) { in ecdsa_sign()
H A Dec_keymaster1_key.cpp110 unique_ptr<EC_KEY, EC_KEY_Delete> ecdsa( in LoadKey()
/aosp12/system/security/keystore-engine/
H A Dkeystore2_engine.cpp87 unsigned int* sig_len, EC_KEY* ec_key);
168 const EC_KEY* public_ecdsa) { in wrap_ecdsa()
169 bssl::UniquePtr<EC_KEY> ec(EC_KEY_new_method(Keystore2Engine::get().engine())); in wrap_ecdsa()
300 unsigned int* sig_len, EC_KEY* ec_key) { in ecdsa_sign()
430 bssl::UniquePtr<EC_KEY> public_ecdsa(EVP_PKEY_get1_EC_KEY(pkey.get())); in EVP_PKEY_from_keystore2()
/aosp12/system/keymaster/km_openssl/
H A Dnist_curve_key_exchange.cpp28 NistCurveKeyExchange::NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error) in NistCurveKeyExchange()
58 UniquePtr<EC_KEY, EC_KEY_Delete> key(EC_KEY_new_by_curve_name(curve_name)); in GenerateKeyExchange()
H A Decies_kem.cpp129 bool EciesKem::Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) { in Decrypt()
135 bool EciesKem::Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key, size_t encrypted_key_len, in Decrypt()
H A Dopenssl_utils.cpp136 EC_KEY* ecKey = EVP_PKEY_get0_EC_KEY(pubKey.get()); in GetEcdsa256KeyFromCert()
159 size_t ec_group_size_bits(EC_KEY* ec_key) { in ec_group_size_bits()
H A Decdsa_operation.cpp145 UniquePtr<EC_KEY, EC_KEY_Delete> ecdsa(EVP_PKEY_get1_EC_KEY(ecdsa_key_)); in Finish()
203 UniquePtr<EC_KEY, EC_KEY_Delete> ecdsa(EVP_PKEY_get1_EC_KEY(ecdsa_key_)); in Finish()
H A Dec_key_factory.cpp101 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EC_KEY_new()); in GenerateKey()
205 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(pkey.get())); in UpdateImportKeyDescription()
/aosp12/hardware/interfaces/security/keymint/support/include/keymint_support/
H A Dopenssl_utils.h39 MAKE_OPENSSL_PTR_TYPE(EC_KEY)
/aosp12/system/keymaster/tests/
H A Dnist_curve_key_exchange_test.cpp190 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key( in TEST()
/aosp12/system/update_engine/payload_consumer/
H A Dpayload_verifier.cc176 EC_KEY* ec_key = EVP_PKEY_get0_EC_KEY(public_key.get()); in VerifyRawSignature()
/aosp12/bootable/recovery/install/
H A Dverifier.cpp393 bool CheckECKey(const std::unique_ptr<EC_KEY, ECKEYDeleter>& ec_key) { in CheckECKey() argument
/aosp12/system/keymaster/key_blob_utils/
H A Dsoftware_keyblobs.cpp141 UniquePtr<EC_KEY, EC_KEY_Delete> ec_key(EVP_PKEY_get1_EC_KEY(pubkey)); in FakeKeyAuthorizations()

12