Home | History | Annotate | Download | only in ecdsa

Lines Matching full:ecdsa_sig

189 	ECDSA_SIG *signature = NULL;
290 ECDSA_SIG *ecdsa_sig = NULL;
437 if ((ecdsa_sig = d2i_ECDSA_SIG(NULL, &sig_ptr, sig_len)) == NULL)
444 r_len = BN_num_bytes(ecdsa_sig->r);
445 s_len = BN_num_bytes(ecdsa_sig->s);
457 BN_bn2bin(ecdsa_sig->r, raw_buf + bn_len - r_len);
458 BN_bn2bin(ecdsa_sig->s, raw_buf + buf_len - s_len);
465 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) ||
466 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL))
470 sig_len = i2d_ECDSA_SIG(ecdsa_sig, &sig_ptr2);
478 if ((BN_bin2bn(raw_buf, bn_len, ecdsa_sig->r) == NULL) ||
479 (BN_bin2bn(raw_buf + bn_len, bn_len, ecdsa_sig->s) == NULL))
483 sig_len = i2d_ECDSA_SIG(ecdsa_sig, &sig_ptr2);
502 ECDSA_SIG_free(ecdsa_sig);
503 ecdsa_sig = NULL;
514 if (ecdsa_sig)
515 ECDSA_SIG_free(ecdsa_sig);