Lines Matching refs:sbuf
239 unsigned char *rbuf = NULL, *sbuf = NULL; in get_ecdsa_sig_rs_bytes() local
254 sbuf = OPENSSL_zalloc(s1_len); in get_ecdsa_sig_rs_bytes()
255 if (rbuf == NULL || sbuf == NULL) in get_ecdsa_sig_rs_bytes()
259 if (BN_bn2binpad(s1, sbuf, s1_len) <= 0) in get_ecdsa_sig_rs_bytes()
262 *s = sbuf; in get_ecdsa_sig_rs_bytes()
269 OPENSSL_free(sbuf); in get_ecdsa_sig_rs_bytes()
748 unsigned char *rbuf = NULL, *sbuf = NULL; in get_dsa_sig_rs_bytes() local
762 sbuf = OPENSSL_zalloc(s1_len); in get_dsa_sig_rs_bytes()
763 if (rbuf == NULL || sbuf == NULL) in get_dsa_sig_rs_bytes()
767 if (BN_bn2binpad(s1, sbuf, s1_len) <= 0) in get_dsa_sig_rs_bytes()
770 *s = sbuf; in get_dsa_sig_rs_bytes()
777 OPENSSL_free(sbuf); in get_dsa_sig_rs_bytes()