Lines Matching defs:sig
51 ECDSA_SIG *sig = NULL;
74 if ((sig = ECDSA_do_sign(digest, dlen, key->ecdsa)) == NULL) {
83 if ((ret = sshbuf_put_bignum2(bb, sig->r)) != 0 ||
84 (ret = sshbuf_put_bignum2(bb, sig->s)) != 0)
106 if (sig != NULL)
107 ECDSA_SIG_free(sig);
117 ECDSA_SIG *sig = NULL;
151 if ((sig = ECDSA_SIG_new()) == NULL) {
155 if (sshbuf_get_bignum2(sigbuf, sig->r) != 0 ||
156 sshbuf_get_bignum2(sigbuf, sig->s) != 0) {
168 switch (ECDSA_do_verify(digest, dlen, sig, key->ecdsa)) {
186 if (sig != NULL)
187 ECDSA_SIG_free(sig);