Home
last modified time | relevance | path

Searched refs:EVP_PKEY (Results 1 – 25 of 35) 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()
Dopenssl_utils.cpp79 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* pkey) { in convert_pkcs8_blob_to_evp() argument
104 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* pkey) { in KeyMaterialToEvpKey() argument
112 keymaster_error_t EvpKeyToKeyMaterial(const EVP_PKEY* pkey, KeymasterKeyBlob* key_blob) { in EvpKeyToKeyMaterial()
Dasymmetric_key_factory.cpp54 EVP_PKEY* pkey = in LoadKey()
59 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey_deleter(pkey); in LoadKey()
Drsa_operation.cpp38 EVP_PKEY* RsaOperationFactory::GetRsaKey(Key&& key, keymaster_error_t* error) { in GetRsaKey()
45 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GetRsaKey()
74 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> rsa(GetRsaKey(move(key), error)); in CreateRsaOperation()
230 keymaster_padding_t padding, EVP_PKEY* key) in RsaDigestingOperation()
324 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in SignUndigested()
431 UniquePtr<RSA, RSA_Delete> rsa(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(rsa_key_))); in VerifyUndigested()
Drsa_key_factory.cpp83 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GenerateKey()
133 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey; in UpdateImportKeyDescription()
/system/keymaster/legacy_support/
Decdsa_keymaster1_operation.cpp30 keymaster_error_t EcdsaKeymaster1WrappedOperation::Begin(EVP_PKEY* ecdsa_key, in Begin()
60 EcdsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* ecdsa_key, in PrepareFinish()
77 keymaster_error_t EcdsaKeymaster1WrappedOperation::GetError(EVP_PKEY* ecdsa_key) { in GetError()
84 static EVP_PKEY* GetEvpKey(const EcdsaKeymaster1Key& key, keymaster_error_t* error) { in GetEvpKey()
90 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GetEvpKey()
105 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()
81 RsaKeymaster1WrappedOperation::PrepareFinish(EVP_PKEY* rsa_key, in PrepareFinish()
98 keymaster_error_t RsaKeymaster1WrappedOperation::GetError(EVP_PKEY* rsa_key) { in GetError()
105 static EVP_PKEY* GetEvpKey(const RsaKeymaster1Key& key, keymaster_error_t* error) { in GetEvpKey()
111 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GetEvpKey()
129 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> rsa(GetEvpKey(rsa_km1_key, error)); in CreateOperation()
Decdsa_keymaster1_operation.h39 keymaster_error_t Begin(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params);
40 keymaster_error_t PrepareFinish(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params);
43 keymaster_error_t GetError(EVP_PKEY* ecdsa_key);
57 keymaster_digest_t digest, EVP_PKEY* key, in EcdsaKeymaster1Operation()
Drsa_keymaster1_operation.h39 keymaster_error_t Begin(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
40 keymaster_error_t PrepareFinish(EVP_PKEY* rsa_key, const AuthorizationSet& input_params);
43 keymaster_error_t GetError(EVP_PKEY* rsa_key);
57 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key, in RsaKeymaster1Operation()
Dkeymaster1_engine.cpp153 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> pkey( in BuildRsaKey()
193 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> pkey( in BuildEcKey()
214 Keymaster1Engine::KeyData* Keymaster1Engine::GetData(EVP_PKEY* key) const { in GetData()
357 EVP_PKEY* Keymaster1Engine::GetKeymaster1PublicKey(const KeymasterKeyBlob& blob, in GetKeymaster1PublicKey()
/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()
159 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaEncryptOperation()
173 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaDecryptOperation()
197 static EVP_PKEY* GetRsaKey(Key&& key, keymaster_error_t* error);
206 EVP_PKEY* key) const = 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) const = 0;
100 keymaster_digest_t digest, EVP_PKEY* key) const override { in InstantiateOperation()
110 keymaster_digest_t digest, EVP_PKEY* key) const override { in InstantiateOperation()
Dopenssl_utils.h63 DEFINE_OPENSSL_OBJECT_POINTER(EVP_PKEY)
88 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* pkey);
93 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* evp_pkey);
95 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.h32 bool InternalToEvp(EVP_PKEY* pkey) const override;
33 bool EvpToInternal(const EVP_PKEY* pkey) override;
/system/security/keystore-engine/
Dmethods.h66 int ecdsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
70 int dsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
74 int rsa_pkey_setup(ENGINE *, EVP_PKEY*, const char*);
Dandroid_engine.cpp255 void operator()(EVP_PKEY* p) const { in operator ()()
259 typedef std::unique_ptr<EVP_PKEY, EVP_PKEY_Delete> Unique_EVP_PKEY;
278 static EVP_PKEY *wrap_rsa(const char *key_id, const RSA *public_rsa) { in wrap_rsa()
314 static EVP_PKEY *wrap_ecdsa(const char *key_id, const EC_KEY *public_ecdsa) { in wrap_ecdsa()
350 EVP_PKEY* EVP_PKEY_from_keystore(const char* key_id) __attribute__((visibility("default")));
356 EVP_PKEY* EVP_PKEY_from_keystore(const char* key_id) { in EVP_PKEY_from_keystore()
379 EVP_PKEY *result; in EVP_PKEY_from_keystore()
/system/security/keystore/
Dkeystore_utils.h48 void operator()(EVP_PKEY* p) const { EVP_PKEY_free(p); } in operator()
50 typedef std::unique_ptr<EVP_PKEY, EVP_PKEY_Delete> Unique_EVP_PKEY;
/system/netd/resolv/dns_responder/
Ddns_tls_frontend.cpp78 bssl::UniquePtr<EVP_PKEY> make_private_key() { in make_private_key()
99 bssl::UniquePtr<EVP_PKEY> privkey(EVP_PKEY_new()); in make_private_key()
114 bssl::UniquePtr<X509> make_cert(EVP_PKEY* privkey, EVP_PKEY* parent_key) { in make_cert()
158 std::vector<bssl::UniquePtr<EVP_PKEY>> keys(chain_length_); in startServer()
/system/extras/verity/
Dgenerate_verity_key.c65 EVP_PKEY *pkey = NULL; in convert_x509()
127 EVP_PKEY* pkey = EVP_PKEY_new(); in generate_key()
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster1_engine.h76 KeyData* GetData(EVP_PKEY* key) const;
82 EVP_PKEY* GetKeymaster1PublicKey(const KeymasterKeyBlob& blob,
/system/keymaster/include/keymaster/key_blob_utils/
Dsoftware_keyblobs.h38 keymaster_error_t FakeKeyAuthorizations(EVP_PKEY* pubkey,
/system/core/trusty/keymaster/legacy/
Dtrusty_keymaster_main.cpp137 void operator()(EVP_PKEY* p) const { EVP_PKEY_free(p); } in operator ()()
258 std::unique_ptr<EVP_PKEY, EVP_PKEY_Delete> pkey( in test_rsa()
362 std::unique_ptr<EVP_PKEY, EVP_PKEY_Delete> pkey( in test_ecdsa()

12