Lines Matching refs:buf
236 uint8_t *buf = NULL;
363 buf = talloc_size(mem_ctx, size);
364 if (buf == NULL) {
372 SAFEALIGN_SET_UINT32(buf, htobe32(SSH_RSA_HEADER_LEN), &c);
373 safealign_memcpy(&buf[c], SSH_RSA_HEADER, SSH_RSA_HEADER_LEN, &c);
374 SAFEALIGN_SET_UINT32(&buf[c],
378 SAFEALIGN_SETMEM_VALUE(&buf[c], '\0', unsigned char, &c);
380 safealign_memcpy(&buf[c], cert_pub_key->u.rsa.publicExponent.data,
383 SAFEALIGN_SET_UINT32(&buf[c],
387 SAFEALIGN_SETMEM_VALUE(&buf[c], '\0', unsigned char, &c);
389 safealign_memcpy(&buf[c], cert_pub_key->u.rsa.modulus.data,
392 *key = buf;
399 talloc_free(buf);