Home
last modified time | relevance | path

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

123

/system/keymaster/include/keymaster/km_openssl/
Drsa_operation.h40 keymaster_padding_t padding, EVP_PKEY* key) in RsaOperation()
63 EVP_PKEY* rsa_key_;
80 keymaster_padding_t padding, EVP_PKEY* key);
95 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaSignOperation()
119 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaVerifyOperation()
144 keymaster_padding_t padding, EVP_PKEY* key) in RsaCryptOperation()
170 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaEncryptOperation()
184 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key) in RsaDecryptOperation()
208 static EVP_PKEY* GetRsaKey(const Key& key, keymaster_error_t* error);
216 keymaster_padding_t padding, EVP_PKEY* key) = 0;
[all …]
Decdsa_operation.h36 keymaster_purpose_t purpose, keymaster_digest_t digest, EVP_PKEY* key) in EcdsaOperation()
51 EVP_PKEY* ecdsa_key_;
59 keymaster_digest_t digest, EVP_PKEY* key) in EcdsaSignOperation()
75 keymaster_digest_t digest, EVP_PKEY* key) in EcdsaVerifyOperation()
91 keymaster_digest_t digest, EVP_PKEY* key) in Ed25519SignOperation()
116 keymaster_digest_t digest, EVP_PKEY* key) = 0;
123 keymaster_digest_t digest, EVP_PKEY* key) override { in InstantiateOperation()
138 keymaster_digest_t digest, EVP_PKEY* key) override { in InstantiateOperation()
Dopenssl_utils.h64 DEFINE_OPENSSL_OBJECT_POINTER(EVP_PKEY)
91 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* pkey);
96 UniquePtr<EVP_PKEY, EVP_PKEY_Delete>* evp_pkey);
98 keymaster_error_t EvpKeyToKeyMaterial(const EVP_PKEY* evp_pkey, KeymasterKeyBlob* key_blob);
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);
Decdh_operation.h35 EcdhOperation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, EVP_PKEY* key) in EcdhOperation()
56 X25519Operation(AuthorizationSet&& hw_enforced, AuthorizationSet&& sw_enforced, EVP_PKEY* key) in X25519Operation()
/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.cpp135 bssl::UniquePtr<EVP_PKEY> wrap_rsa(std::shared_ptr<Keystore2KeyBackend> key_backend, in wrap_rsa()
157 bssl::UniquePtr<EVP_PKEY> result(EVP_PKEY_new()); in wrap_rsa()
169 bssl::UniquePtr<EVP_PKEY> wrap_ecdsa(std::shared_ptr<Keystore2KeyBackend> key_backend, in wrap_ecdsa()
188 bssl::UniquePtr<EVP_PKEY> result(EVP_PKEY_new()); in wrap_ecdsa()
334 bssl::UniquePtr<EVP_PKEY> extractPubKey(const std::vector<uint8_t>& cert_bytes) { in extractPubKey()
351 bssl::UniquePtr<EVP_PKEY> pub_key(X509_get_pubkey(decoded_cert.get())); in extractPubKey()
365 extern "C" EVP_PKEY* EVP_PKEY_from_keystore2(const char* key_id) { in EVP_PKEY_from_keystore2()
424 bssl::UniquePtr<EVP_PKEY> result; in EVP_PKEY_from_keystore2()
Dkeystore2_engine.h21 extern "C" EVP_PKEY* EVP_PKEY_from_keystore2(const char* key_id);
/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()
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()
126 unique_ptr<EVP_PKEY, EVP_PKEY_Delete> rsa(GetEvpKey(rsa_km1_key, error)); in CreateOperation()
Decdsa_keymaster1_operation.h40 keymaster_error_t Begin(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params);
41 keymaster_error_t PrepareFinish(EVP_PKEY* ecdsa_key, const AuthorizationSet& input_params);
44 keymaster_error_t GetError(EVP_PKEY* ecdsa_key);
59 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);
58 keymaster_digest_t digest, keymaster_padding_t padding, EVP_PKEY* key, in RsaKeymaster1Operation()
/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.cc63 auto pub_key = std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>( in CreateInstance()
70 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> keys; in CreateInstance()
84 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> public_keys; in CreateInstanceFromZipPath()
197 const EVP_PKEY* public_key, in GetRawHashFromSignature()
203 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_android.h37 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>*
/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()
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()
Dasymmetric_key_factory.cpp56 EVP_PKEY* pkey = d2i_PrivateKey(asym_key->evp_key_type(), nullptr /* pkey */, &tmp, in LoadKey()
59 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey_deleter(pkey); in LoadKey()
/system/security/keystore2/src/crypto/include/
Dcertificate_utils.h41 DEFINE_OPENSSL_OBJECT_POINTER(EVP_PKEY);
95 makeCert(const EVP_PKEY* evp_pkey, //
121 CertUtilsError signCert(X509* certificate, EVP_PKEY* signing_key);
/system/security/ondevice-signing/
DCertUtils.cpp88 static Result<bssl::UniquePtr<EVP_PKEY>> modulusToRsaPkey(const std::vector<uint8_t>& publicKey) { in modulusToRsaPkey()
96 bssl::UniquePtr<EVP_PKEY> public_key(EVP_PKEY_new()); in modulusToRsaPkey()
197 static Result<std::vector<uint8_t>> extractPublicKey(EVP_PKEY* pkey) { in extractPublicKey()
224 bssl::UniquePtr<EVP_PKEY> decoded_pkey(X509_get_pubkey(decoded_cert.get())); in extractPublicKeyFromX509()
/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.h74 KeyData* GetData(EVP_PKEY* key) const;
80 EVP_PKEY* GetKeymaster1PublicKey(const KeymasterKeyBlob& blob,

123