Home
last modified time | relevance | path

Searched refs:new_key (Results 1 – 3 of 3) sorted by relevance

/system/core/libcrypto_utils/
Dandroid_pubkey.c68 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/
Dandroid_pubkey_test.cpp111 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/update_engine/payload_generator/
Dgenerate_delta_main.cc361 DEFINE_string(new_key, "", in Main()