Lines Matching refs:bufs
430 unsigned char *bufs[4];
438 memset(bufs, 0, sizeof(bufs));
440 bufs[i] = isc_mem_get(key->mctx, BN_num_bytes(dh->p));
441 if (bufs[i] == NULL) {
451 BN_bn2bin(dh->p, bufs[i]);
452 priv.elements[i].data = bufs[i];
457 BN_bn2bin(dh->g, bufs[i]);
458 priv.elements[i].data = bufs[i];
463 BN_bn2bin(dh->priv_key, bufs[i]);
464 priv.elements[i].data = bufs[i];
469 BN_bn2bin(dh->pub_key, bufs[i]);
470 priv.elements[i].data = bufs[i];
477 if (bufs[i] == NULL)
479 isc_mem_put(key->mctx, bufs[i], BN_num_bytes(dh->p));