Searched refs:rsa (Results 1 – 3 of 3) sorted by relevance
/bootable/recovery/install/include/install/ |
D | verifier.h | 34 void operator()(RSA* rsa) const { in operator() 35 RSA_free(rsa); in operator() 53 : hash_len(hash_len_), key_type(key_type_), rsa(std::move(rsa_)), ec(std::move(ec_)) {} in Certificate() 58 std::unique_ptr<RSA, RSADeleter> rsa; member 87 bool CheckRSAKey(const std::unique_ptr<RSA, RSADeleter>& rsa);
|
/bootable/recovery/install/ |
D | verifier.cpp | 281 key.rsa.get())) { in verify_file() 364 bool CheckRSAKey(const std::unique_ptr<RSA, RSADeleter>& rsa) { in CheckRSAKey() argument 365 if (!rsa) { in CheckRSAKey() 371 RSA_get0_key(rsa.get(), &out_n, &out_e, nullptr /* private exponent */); in CheckRSAKey() 447 cert->rsa.reset(EVP_PKEY_get1_RSA(public_key.get())); in LoadCertificateFromBuffer() 448 if (!cert->rsa || !CheckRSAKey(cert->rsa)) { in LoadCertificateFromBuffer() 454 cert->rsa.reset(); in LoadCertificateFromBuffer()
|
/bootable/recovery/tests/unit/ |
D | verifier_test.cpp | 156 ASSERT_EQ(nullptr, cert.rsa); in TEST() 173 std::unique_ptr<RSA, RSADeleter> rsa(RSA_new()); in TEST() local 176 RSA_generate_key_ex(rsa.get(), 2048, exponent.get(), nullptr); in TEST() 177 ASSERT_TRUE(CheckRSAKey(rsa)); in TEST() 181 RSA_generate_key_ex(rsa.get(), 2048, exponent.get(), nullptr); in TEST() 182 ASSERT_FALSE(CheckRSAKey(rsa)); in TEST() 186 RSA_generate_key_ex(rsa.get(), 1024, exponent.get(), nullptr); in TEST() 187 ASSERT_FALSE(CheckRSAKey(rsa)); in TEST()
|