Home
last modified time | relevance | path

Searched refs:private_key (Results 1 – 22 of 22) sorted by relevance

/system/keymaster/include/keymaster/km_openssl/
Dkem.h47 virtual bool Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) = 0;
48 virtual bool Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key,
Dnist_curve_key_exchange.h42 NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error);
59 EC_KEY* private_key() { return private_key_.release(); } in private_key() function
Decies_kem.h47 bool Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) override;
48 bool Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key, size_t encrypted_key_len,
/system/apex/apexd/apexd_testdata/
DAndroid.bp21 private_key: "com.android.apex.test_package.pem",
46 private_key: "com.android.apex.test_package.preinstall.pem",
63 private_key: "com.android.apex.test_package.postinstall.pem",
80 private_key: "com.android.apex.test_package.prepostinstall.fail.pem",
97 private_key: "com.android.apex.test_package.no_inst_key.pem",
113 private_key: "com.android.apex.test_package_2.pem",
/system/keymaster/km_openssl/
Decies_kem.cpp129 bool EciesKem::Decrypt(EC_KEY* private_key, const Buffer& encrypted_key, Buffer* output_key) { in Decrypt() argument
130 return Decrypt(private_key, encrypted_key.peek_read(), encrypted_key.available_read(), in Decrypt()
135 bool EciesKem::Decrypt(EC_KEY* private_key, const uint8_t* encrypted_key, size_t encrypted_key_len, in Decrypt() argument
139 key_exchange_.reset(new(std::nothrow) NistCurveKeyExchange(private_key, &error)); in Decrypt()
Dnist_curve_key_exchange.cpp28 NistCurveKeyExchange::NistCurveKeyExchange(EC_KEY* private_key, keymaster_error_t* error) in NistCurveKeyExchange() argument
29 : private_key_(private_key) { in NistCurveKeyExchange()
/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp126 key_exchange->private_key(), nullptr /* kdf */)); in TEST()
186 string private_key = hex2str(test.my_private_key); in TEST() local
189 const uint8_t* private_key_data = reinterpret_cast<const uint8_t*>(private_key.data()); in TEST()
191 d2i_ECPrivateKey(nullptr, &private_key_data, private_key.size())); in TEST()
Decies_kem_test.cpp66 kem->Decrypt(key_exchange->private_key(), output_encrypted_key, &decrypted_clear_key)); in TEST()
/system/bt/stack/smp/
Dsmp_keys.cc618 memcpy((void*)p_cb->private_key, rand, BT_OCTET8_LEN); in smp_create_private_key()
621 memcpy((void*)&p_cb->private_key[8], rand, BT_OCTET8_LEN); in smp_create_private_key()
624 memcpy((void*)&p_cb->private_key[16], rand, BT_OCTET8_LEN); in smp_create_private_key()
627 memcpy((void*)&p_cb->private_key[24], rand, in smp_create_private_key()
664 memcpy(p_cb->private_key, p_cb->sc_oob_data.loc_oob_data.private_key_used, in smp_use_oob_private_key()
689 BT_OCTET32 private_key; in smp_process_private_key() local
693 memcpy(private_key, p_cb->private_key, BT_OCTET32_LEN); in smp_process_private_key()
694 ECC_PointMult(&public_key, &(curve_p256.G), (uint32_t*)private_key, in smp_process_private_key()
699 smp_debug_print_nbyte_little_endian(p_cb->private_key, "private", in smp_process_private_key()
723 BT_OCTET32 private_key; in smp_compute_dhkey() local
[all …]
Dsmp_int.h277 BT_OCTET32 private_key; member
Dsmp_act.cc1858 memcpy(p_cb->sc_oob_data.loc_oob_data.private_key_used, p_cb->private_key, in smp_set_local_oob_keys()
/system/extras/verity/
Dgenerate_verity_key.c34 static int write_public_keyfile(RSA *private_key, const char *private_key_path) in write_public_keyfile() argument
44 if (!android_pubkey_encode(private_key, key_data, sizeof(key_data))) in write_public_keyfile()
/system/core/trusty/keymaster/legacy/
Dtrusty_keymaster_main.cpp185 keymaster_blob_t private_key = {rsa_privkey_pk8_der, rsa_privkey_pk8_der_len}; in test_import_rsa() local
187 device->import_key(&rsa_param_set, KM_KEY_FORMAT_PKCS8, &private_key, &key, nullptr); in test_import_rsa()
290 keymaster_blob_t private_key = {ec_privkey_pk8_der, ec_privkey_pk8_der_len}; in test_import_ecdsa() local
291 int error = device->import_key(&ec_param_set, KM_KEY_FORMAT_PKCS8, &private_key, &key, nullptr); in test_import_ecdsa()
/system/netd/apex/
DAndroid.bp34 private_key: "com.android.resolv.pem",
/system/timezone/apex/
DAndroid.bp39 private_key: "com.android.tzdata.pem",
/system/apex/apexer/
DAndroid.bp55 private_key: "etc/com.android.support.apexer.pem",
/system/apex/shim/build/
DAndroid.bp33 private_key: ":com.android.apex.cts.shim.pem",
190 private_key: ":com.android.apex.cts.shim_not_pre_installed.pem",
/system/core/adb/client/
Dauth.cpp56 static bool calculate_public_key(std::string* out, RSA* private_key) { in calculate_public_key() argument
58 if (!android_pubkey_encode(private_key, binary_key_data, sizeof(binary_key_data))) { in calculate_public_key()
/system/apex/tests/
DAndroid.bp144 private_key: "testdata/com.android.apex.test.pem",
/system/update_engine/payload_consumer/
Ddelta_performer_unittest.cc231 string private_key = in GeneratePayload() local
235 private_key, in GeneratePayload()
Ddelta_performer_integration_test.cc481 const string private_key = in GenerateDeltaFile() local
518 payload_config, state->delta_path, private_key, &state->metadata_size)); in GenerateDeltaFile()
/system/update_engine/payload_generator/
Dgenerate_delta_main.cc328 DEFINE_string(private_key, "", "Path to private key in .pem format"); in Main()