Home
last modified time | relevance | path

Searched defs:pkey (Results 1 – 11 of 11) sorted by relevance

/system/security/softkeymaster/
Dkeymaster_openssl.cpp124 static int wrap_key(EVP_PKEY* pkey, int type, uint8_t** keyBlob, size_t* keyBlobLength) { in wrap_key()
226 Unique_EVP_PKEY pkey(EVP_PKEY_new()); in unwrap_key() local
241 static int generate_dsa_keypair(EVP_PKEY* pkey, const keymaster_dsa_keygen_params_t* dsa_params) { in generate_dsa_keypair()
291 static int generate_ec_keypair(EVP_PKEY* pkey, const keymaster_ec_keygen_params_t* ec_params) { in generate_ec_keypair()
347 static int generate_rsa_keypair(EVP_PKEY* pkey, const keymaster_rsa_keygen_params_t* rsa_params) { in generate_rsa_keypair()
384 Unique_EVP_PKEY pkey(EVP_PKEY_new()); in openssl_generate_keypair() local
437 Unique_EVP_PKEY pkey(EVP_PKCS82PKEY(pkcs8.get())); in openssl_import_keypair() local
460 Unique_EVP_PKEY pkey(unwrap_key(key_blob, key_blob_length)); in openssl_get_keypair_public() local
490 static int sign_dsa(EVP_PKEY* pkey, keymaster_dsa_sign_params_t* sign_params, const uint8_t* data, in sign_dsa()
522 static int sign_ec(EVP_PKEY* pkey, keymaster_ec_sign_params_t* sign_params, const uint8_t* data, in sign_ec()
[all …]
/system/extras/verity/
Dgenerate_verity_key.c37 static int convert_to_mincrypt_format(RSA *rsa, RSAPublicKey *pkey) in convert_to_mincrypt_format()
86 RSAPublicKey pkey; in write_public_keyfile() local
115 EVP_PKEY *pkey = NULL; in convert_x509() local
177 EVP_PKEY* pkey = EVP_PKEY_new(); in generate_key() local
Dverify_boot_signature.c313 EVP_PKEY *pkey = NULL; in verify_signature() local
/system/keymaster/
Dasymmetric_key.cpp59 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in key_material() local
86 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in formatted_key_material() local
142 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GenerateKey() local
160 RsaKey* RsaKey::ImportKey(const AuthorizationSet& key_description, EVP_PKEY* pkey, in ImportKey()
245 bool RsaKey::EvpToInternal(const EVP_PKEY* pkey) { in EvpToInternal()
291 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GenerateKey() local
366 DsaKey* DsaKey::ImportKey(const AuthorizationSet& key_description, EVP_PKEY* pkey, in ImportKey()
449 bool DsaKey::EvpToInternal(const EVP_PKEY* pkey) { in EvpToInternal()
471 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GenerateKey() local
499 EcdsaKey* EcdsaKey::ImportKey(const AuthorizationSet& key_description, EVP_PKEY* pkey, in ImportKey()
[all …]
Dkey.cpp97 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKCS82PKEY(pkcs8.get())); in ImportKey() local
/system/core/adb/
Dadb_auth_host.c66 static int RSA_to_RSAPublicKey(RSA *rsa, RSAPublicKey *pkey) in RSA_to_RSAPublicKey()
153 RSAPublicKey pkey; in write_public_keyfile() local
195 EVP_PKEY* pkey = EVP_PKEY_new(); in generate_key() local
/system/security/keystore-engine/
Ddsa_meth.cpp124 int dsa_pkey_setup(ENGINE *e, EVP_PKEY *pkey, const char *key_id) { in dsa_pkey_setup()
Decdsa_meth.cpp124 int ecdsa_pkey_setup(ENGINE *e, EVP_PKEY *pkey, const char *key_id) { in ecdsa_pkey_setup()
Deng_keystore.cpp133 Unique_EVP_PKEY pkey(d2i_PUBKEY(NULL, &tmp, pubkeyLen)); in keystore_loadkey() local
Drsa_meth.cpp212 int rsa_pkey_setup(ENGINE *e, EVP_PKEY *pkey, const char *key_id) { in rsa_pkey_setup()
/system/security/keystore/
Dkeystore.cpp1454 Unique_EVP_PKEY pkey(PEM_read_bio_PrivateKey(b.get(), NULL, NULL, NULL)); in importBlobAsKey() local