Lines Matching refs:rbuf
239 unsigned char *rbuf = NULL, *sbuf = NULL; in get_ecdsa_sig_rs_bytes() local
253 rbuf = OPENSSL_zalloc(r1_len); in get_ecdsa_sig_rs_bytes()
255 if (rbuf == NULL || sbuf == NULL) in get_ecdsa_sig_rs_bytes()
257 if (BN_bn2binpad(r1, rbuf, r1_len) <= 0) in get_ecdsa_sig_rs_bytes()
261 *r = rbuf; in get_ecdsa_sig_rs_bytes()
268 OPENSSL_free(rbuf); in get_ecdsa_sig_rs_bytes()
748 unsigned char *rbuf = NULL, *sbuf = NULL; in get_dsa_sig_rs_bytes() local
761 rbuf = OPENSSL_zalloc(r1_len); in get_dsa_sig_rs_bytes()
763 if (rbuf == NULL || sbuf == NULL) in get_dsa_sig_rs_bytes()
765 if (BN_bn2binpad(r1, rbuf, r1_len) <= 0) in get_dsa_sig_rs_bytes()
769 *r = rbuf; in get_dsa_sig_rs_bytes()
776 OPENSSL_free(rbuf); in get_dsa_sig_rs_bytes()