| 495 | }; |
| 496 | |
| 497 | static ScopedEVP_PKEY LoadExampleRSAKey() { |
| 498 | ScopedRSA rsa(RSA_private_key_from_bytes(kExampleRSAKeyDER, |
| 499 | sizeof(kExampleRSAKeyDER))); |
| 500 | if (!rsa) { |
| 501 | return nullptr; |
| 502 | } |
| 503 | ScopedEVP_PKEY pkey(EVP_PKEY_new()); |
| 504 | if (!pkey || !EVP_PKEY_set1_RSA(pkey.get(), rsa.get())) { |
| 505 | return nullptr; |
| 506 | } |
| 507 | return pkey; |
| 508 | } |
| 509 | |
| 510 | static bool TestEVP_DigestSignInit(void) { |
| 511 | ScopedEVP_PKEY pkey = LoadExampleRSAKey(); |
no test coverage detected