/system/keymaster/km_openssl/ |
D | ec_key.cpp | 27 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()
|
D | rsa_key.cpp | 26 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()
|
D | asymmetric_key_factory.cpp | 53 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/ |
D | methods.h | 44 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*);
|
D | android_engine.cpp | 31 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()
|
D | keystore2_engine.h | 21 extern "C" EVP_PKEY* EVP_PKEY_from_keystore2(const char* key_id);
|
D | keystore2_engine.cpp | 133 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/ |
D | ecdsa_keymaster1_operation.cpp | 30 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()
|
D | rsa_keymaster1_operation.cpp | 30 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()
|
D | ecdsa_keymaster1_operation.h | 38 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()
|
D | rsa_keymaster1_operation.h | 37 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/ |
D | rsa_operation.h | 38 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 …]
|
D | ecdsa_operation.h | 33 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()
|
D | openssl_utils.h | 63 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);
|
D | asymmetric_key.h | 37 virtual bool InternalToEvp(EVP_PKEY* pkey) const = 0; 38 virtual bool EvpToInternal(const EVP_PKEY* pkey) = 0;
|
D | ec_key.h | 36 bool InternalToEvp(EVP_PKEY* pkey) const override; 37 bool EvpToInternal(const EVP_PKEY* pkey) override;
|
D | rsa_key.h | 36 bool InternalToEvp(EVP_PKEY* pkey) const override; 37 bool EvpToInternal(const EVP_PKEY* pkey) override;
|
D | certificate_utils.h | 62 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/ |
D | payload_verifier.h | 74 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_;
|
D | payload_verifier.cc | 64 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()
|
D | certificate_parser_android.cc | 71 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()
|
D | certificate_parser_stub.cc | 22 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>* in ReadPublicKeysFromCertificates() argument
|
D | certificate_parser_interface.h | 36 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>*
|
D | certificate_parser_android.h | 37 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>*
|
/system/security/keystore2/src/crypto/include/ |
D | certificate_utils.h | 40 DEFINE_OPENSSL_OBJECT_POINTER(EVP_PKEY); 93 makeCert(const EVP_PKEY* evp_pkey, // 119 CertUtilsError signCert(X509* certificate, EVP_PKEY* signing_key);
|