Searched refs:new_key (Results 1 – 5 of 5) sorted by relevance
/system/core/libcrypto_utils/ |
D | android_pubkey.c | 68 RSA* new_key = RSA_new(); in android_pubkey_decode() local 69 if (!new_key) { in android_pubkey_decode() 84 new_key->n = BN_bin2bn(modulus_buffer, sizeof(modulus_buffer), NULL); in android_pubkey_decode() 85 if (!new_key->n) { in android_pubkey_decode() 90 new_key->e = BN_new(); in android_pubkey_decode() 91 if (!new_key->e || !BN_set_word(new_key->e, key_struct->exponent)) { in android_pubkey_decode() 103 *key = new_key; in android_pubkey_decode() 107 if (!ret && new_key) { in android_pubkey_decode() 108 RSA_free(new_key); in android_pubkey_decode()
|
/system/core/libcrypto_utils/tests/ |
D | android_pubkey_test.cpp | 111 RSA* new_key = nullptr; in SetUp() local 112 ASSERT_TRUE(android_pubkey_decode(kKey2048, sizeof(kKey2048), &new_key)); in SetUp() 113 key_.reset(new_key); in SetUp()
|
/system/gsid/ |
D | libgsi.cpp | 76 std::string new_key; in CanBootIntoGsi() local 82 new_key = kInstallStatusDisabled; in CanBootIntoGsi() 84 new_key = std::to_string(attempts + 1); in CanBootIntoGsi() 86 if (!WriteAndSyncFile(new_key, kGsiInstallStatusFile)) { in CanBootIntoGsi()
|
/system/vold/ |
D | Keymaster.cpp | 280 std::string new_key; in keymaster_upgrade_key_for_cryptfs_scrypt() local 281 if (!dev.upgradeKey(old_key, keyParams(rsa_key_size, rsa_exponent, ratelimit), &new_key)) in keymaster_upgrade_key_for_cryptfs_scrypt() 283 if (!write_string_to_buf(new_key, key_buffer, key_buffer_size, key_out_size)) return -1; in keymaster_upgrade_key_for_cryptfs_scrypt()
|
/system/update_engine/payload_generator/ |
D | generate_delta_main.cc | 404 DEFINE_string(new_key, in Main()
|