Home
last modified time | relevance | path

Searched refs:EVP_PKEY (Results 1 – 25 of 50) sorted by relevance

12

/system/keymaster/km_openssl/
Dec_key.cpp27 bool EcKey::EvpToInternal(const EVP_PKEY* pkey) { in EvpToInternal()
28 ec_key_.reset(EVP_PKEY_get1_EC_KEY(const_cast<EVP_PKEY*>(pkey))); in EvpToInternal()
32 bool EcKey::InternalToEvp(EVP_PKEY* pkey) const { in InternalToEvp()
Drsa_key.cpp26 bool RsaKey::EvpToInternal(const EVP_PKEY* pkey) { in EvpToInternal()
27 rsa_key_.reset(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pkey))); in EvpToInternal()
31 bool RsaKey::InternalToEvp(EVP_PKEY* pkey) const { in InternalToEvp()
Dasymmetric_key_factory.cpp53 EVP_PKEY* pkey = d2i_PrivateKey(evp_key_type(), nullptr /* pkey */, &tmp, in LoadKey()
56 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey_deleter(pkey); in LoadKey()
/system/security/keystore-engine/
Dmethods.h44 int ecdsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
48 int dsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
52 int rsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
Dandroid_engine.cpp31 EVP_PKEY* EVP_PKEY_from_keystore(const char* key_id) __attribute__((visibility("default")));
37 EVP_PKEY* EVP_PKEY_from_keystore(const char* key_id) { in EVP_PKEY_from_keystore()
Dkeystore2_engine.h21 extern "C" EVP_PKEY* EVP_PKEY_from_keystore2(const char* key_id);
Dkeystore2_engine.cpp133 bssl::UniquePtr<EVP_PKEY> wrap_rsa(std::shared_ptr<Keystore2KeyBackend> key_backend, in wrap_rsa()
153 bssl::UniquePtr<EVP_PKEY> result(EVP_PKEY_new()); in wrap_rsa()
165 bssl::UniquePtr<EVP_PKEY> wrap_ecdsa(std::shared_ptr<Keystore2KeyBackend> key_backend, in wrap_ecdsa()
184 bssl::UniquePtr<EVP_PKEY> result(EVP_PKEY_new()); in wrap_ecdsa()
336 extern "C" EVP_PKEY* EVP_PKEY_from_keystore2(const char* key_id) { in EVP_PKEY_from_keystore2()
392 bssl::UniquePtr<EVP_PKEY> pkey(X509_get_pubkey(x509.get())); in EVP_PKEY_from_keystore2()
401 bssl::UniquePtr<EVP_PKEY> result; in EVP_PKEY_from_keystore2()
/system/keymaster/legacy_support/
Decdsa_keymaster1_operation.cpp30 keymaster_error_t EcdsaKeymaster1WrappedOperation::Begin(EVP_PKEY* ecdsa_key, in Begin()
58 EcdsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* ecdsa_key, in PrepareFinish()
75 keymaster_error_t EcdsaKeymaster1WrappedOperation::GetError(EVP_PKEY* ecdsa_key) { in GetError()
81 static EVP_PKEY* GetEvpKey(const EcdsaKeymaster1Key& key, keymaster_error_t* error) { in GetEvpKey()
87 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GetEvpKey()
102 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> ecdsa(GetEvpKey(ecdsa_km1_key, error)); in CreateOperation()
Drsa_keymaster1_operation.cpp30 keymaster_error_t RsaKeymaster1WrappedOperation::Begin(EVP_PKEY* rsa_key, in Begin()
79 RsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* rsa_key, in PrepareFinish()
96 keymaster_error_t RsaKeymaster1WrappedOperation::GetError(EVP_PKEY* rsa_key) { in GetError()
102 static EVP_PKEY* GetEvpKey(const RsaKeymaster1Key& key, keymaster_error_t* error) { in GetEvpKey()
108 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GetEvpKey()
126 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> rsa(GetEvpKey(rsa_km1_key, error)); in CreateOperation()
Decdsa_keymaster1_operation.h38 keymaster_error_t Begin(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params);
39 keymaster_error_t PrepareFinish(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params);
42 keymaster_error_t GetError(EVP_PKEY* ecdsa_key);
57 keymaster_digest_t digest, EVP_PKEY* key, in EcdsaKeymaster1Operation()
Drsa_keymaster1_operation.h37 keymaster_error_t Begin(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
38 keymaster_error_t PrepareFinish(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
41 keymaster_error_t GetError(EVP_PKEY* rsa_key);
56 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key, in RsaKeymaster1Operation()
/system/keymaster/include/keymaster/km_openssl/
Drsa_operation.h38 keymaster_padding_t padding, EVP_PKEY* key) in RsaOperation()
61 EVP_PKEY* rsa_key_;
78 keymaster_padding_t padding, EVP_PKEY* key);
93 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaSignOperation()
117 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaVerifyOperation()
142 keymaster_padding_t padding, EVP_PKEY* key) in RsaCryptOperation()
167 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaEncryptOperation()
181 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaDecryptOperation()
205 static EVP_PKEY* GetRsaKey(const Key& key, keymaster_error_t* error);
213 keymaster_padding_t padding, EVP_PKEY* key) = 0;
[all …]
Decdsa_operation.h33 keymaster_purpose_t purpose, keymaster_digest_t digest, EVP_PKEY* key) in EcdsaOperation()
48 EVP_PKEY* ecdsa_key_;
56 keymaster_digest_t digest, EVP_PKEY* key) in EcdsaSignOperation()
71 keymaster_digest_t digest, EVP_PKEY* key) in EcdsaVerifyOperation()
93 keymaster_digest_t digest, EVP_PKEY* key) = 0;
100 keymaster_digest_t digest, EVP_PKEY* key) override { in InstantiateOperation()
110 keymaster_digest_t digest, EVP_PKEY* key) override { in InstantiateOperation()
Dopenssl_utils.h63 DEFINE_OPENSSL_OBJECT_POINTER(EVP_PKEY)
89 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* pkey);
94 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* evp_pkey);
96 keymaster_error_t EvpKeyToKeyMaterial(const EVP_PKEY* evp_pkey, KeymasterKeyBlob* key_blob);
Dasymmetric_key.h37 virtual bool InternalToEvp(EVP_PKEY* pkey) const = 0;
38 virtual bool EvpToInternal(const EVP_PKEY* pkey) = 0;
Dec_key.h36 bool InternalToEvp(EVP_PKEY* pkey) const override;
37 bool EvpToInternal(const EVP_PKEY* pkey) override;
Drsa_key.h36 bool InternalToEvp(EVP_PKEY* pkey) const override;
37 bool EvpToInternal(const EVP_PKEY* pkey) override;
Dcertificate_utils.h62 keymaster_error_t make_cert(const EVP_PKEY* evp_pkey, const X509_NAME* issuer,
66 keymaster_error_t sign_cert(X509* certificate, const EVP_PKEY* signing_key);
/system/update_engine/payload_consumer/
Dpayload_verifier.h74 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>&& in PayloadVerifier() argument
82 const EVP_PKEY* public_key,
85 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> public_keys_;
Dpayload_verifier.cc64 auto pub_key = std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>( in CreateInstance()
71 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> keys; in CreateInstance()
85 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> public_keys; in CreateInstanceFromZipPath()
198 const EVP_PKEY* public_key, in GetRawHashFromSignature()
204 RSA* rsa = EVP_PKEY_get0_RSA(const_cast<EVP_PKEY*>(public_key)); in GetRawHashFromSignature()
Dcertificate_parser_android.cc71 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>* in ReadPublicKeysFromCertificates() argument
92 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> result; in ReadPublicKeysFromCertificates()
104 std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)> public_key( in ReadPublicKeysFromCertificates()
Dcertificate_parser_stub.cc22 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>* in ReadPublicKeysFromCertificates() argument
Dcertificate_parser_interface.h36 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>*
Dcertificate_parser_android.h37 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>*
/system/security/keystore2/src/crypto/include/
Dcertificate_utils.h40 DEFINE_OPENSSL_OBJECT_POINTER(EVP_PKEY);
93 makeCert(const EVP_PKEY* evp_pkey, //
119 CertUtilsError signCert(X509* certificate, EVP_PKEY* signing_key);

12