Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/tests/unit/
Dverifier_test.cpp174 std::unique_ptr<BIGNUM, decltype(&BN_free)> exponent(BN_new(), BN_free); in TEST() local
175 BN_set_word(exponent.get(), 3); in TEST()
176 RSA_generate_key_ex(rsa.get(), 2048, exponent.get(), nullptr); in TEST()
180 BN_set_word(exponent.get(), 17); in TEST()
181 RSA_generate_key_ex(rsa.get(), 2048, exponent.get(), nullptr); in TEST()
185 BN_set_word(exponent.get(), 3); in TEST()
186 RSA_generate_key_ex(rsa.get(), 1024, exponent.get(), nullptr); in TEST()
/bootable/recovery/install/
Dverifier.cpp378 BN_ULONG exponent = BN_get_word(out_e); in CheckRSAKey() local
379 if (exponent != 3 && exponent != 65537) { in CheckRSAKey()
380 LOG(ERROR) << "Public exponent should be 3 or 65537, actual: " << exponent; in CheckRSAKey()