MCPcopy Create free account
hub / github.com/arun11299/cpp-jwt / ECDSA_SIG_set0

Method ECDSA_SIG_set0

include/jwt/algorithm.hpp:537–547  ·  view source on GitHub ↗

*/

Source from the content-addressed store, hash-verified

535 /**
536 */
537 static int ECDSA_SIG_set0(ECDSA_SIG* sig, BIGNUM* r, BIGNUM* s)
538 {
539 if (r == nullptr || s == nullptr) return 0;
540
541 BN_clear_free(sig->r);
542 BN_clear_free(sig->s);
543
544 sig->r = r;
545 sig->s = s;
546 return 1;
547 }
548
549#endif
550};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected