Lines Matching refs:sig
212 ECDSA_SIG *sig = NULL; in sm2_sig_gen() local
304 sig = ECDSA_SIG_new(); in sm2_sig_gen()
305 if (sig == NULL) { in sm2_sig_gen()
311 ECDSA_SIG_set0(sig, r, s); in sm2_sig_gen()
316 if (sig == NULL) { in sm2_sig_gen()
323 return sig; in sm2_sig_gen()
326 static int sm2_sig_verify(const EC_KEY *key, const ECDSA_SIG *sig, in sm2_sig_verify() argument
369 ECDSA_SIG_get0(sig, &r, &s); in sm2_sig_verify()
417 ECDSA_SIG *sig = NULL; in ossl_sm2_do_sign() local
425 sig = sm2_sig_gen(key, e); in ossl_sm2_do_sign()
429 return sig; in ossl_sm2_do_sign()
434 const ECDSA_SIG *sig, in ossl_sm2_do_verify() argument
448 ret = sm2_sig_verify(key, sig, e); in ossl_sm2_do_verify()
456 unsigned char *sig, unsigned int *siglen, in ossl_sm2_internal_sign() argument
464 if (sig == NULL) { in ossl_sm2_internal_sign()
481 sigleni = i2d_ECDSA_SIG(s, &sig); in ossl_sm2_internal_sign()
497 const unsigned char *sig, int sig_len, in ossl_sm2_internal_verify() argument
502 const unsigned char *p = sig; in ossl_sm2_internal_verify()
518 if (derlen != sig_len || memcmp(sig, der, derlen) != 0) { in ossl_sm2_internal_verify()