MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / LoadExampleRSAKey

Function LoadExampleRSAKey

3rdparty/boringssl/crypto/evp/evp_extra_test.cc:497–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495};
496
497static 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
510static bool TestEVP_DigestSignInit(void) {
511 ScopedEVP_PKEY pkey = LoadExampleRSAKey();

Callers 4

TestEVP_DigestSignInitFunction · 0.85
TestEVP_DigestVerifyInitFunction · 0.85
TestVerifyRecoverFunction · 0.85

Calls 4

EVP_PKEY_newFunction · 0.85
EVP_PKEY_set1_RSAFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected