MCPcopy Create free account
hub / github.com/Thalhammer/jwt-cpp / EVP_SignFinal

Function EVP_SignFinal

tests/OpenSSLErrorTest.cpp:261–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261int EVP_SignFinal(EVP_MD_CTX* ctx, unsigned char* md, unsigned int* s, EVP_PKEY* pkey) {
262 static int (*origMethod)(EVP_MD_CTX * ctx, unsigned char* md, unsigned int* s, EVP_PKEY* pkey) = nullptr;
263 if (origMethod == nullptr) origMethod = (decltype(origMethod))dlsym(RTLD_NEXT, SYMBOL_NAME("EVP_SignFinal"));
264 bool fail = fail_EVP_SignFinal & 1;
265 fail_EVP_SignFinal = fail_EVP_SignFinal >> 1;
266 if (fail)
267 return 0;
268 else
269 return origMethod(ctx, md, s, pkey);
270}
271
272int EVP_VerifyFinal(EVP_MD_CTX* ctx, const unsigned char* sigbuf, unsigned int siglen, EVP_PKEY* pkey) {
273 static int (*origMethod)(EVP_MD_CTX * ctx, const unsigned char* sigbuf, unsigned int siglen, EVP_PKEY* pkey) =

Callers 1

signMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected