Lines Matching defs:buf
98 unsigned char *buf;
136 buf = talloc_size(mem_ctx, buf_size);
137 if (buf == NULL) {
143 der_blob = buf;
145 der_size = i2d_X509(x509, &buf);
182 uint8_t *buf = NULL;
243 buf = talloc_size(mem_ctx, size);
244 if (buf == NULL) {
252 SAFEALIGN_SET_UINT32(buf, htobe32(SSH_RSA_HEADER_LEN), &c);
253 safealign_memcpy(&buf[c], SSH_RSA_HEADER, SSH_RSA_HEADER_LEN, &c);
254 SAFEALIGN_SET_UINT32(&buf[c], htobe32(exponent_len), &c);
255 safealign_memcpy(&buf[c], exponent, exponent_len, &c);
261 SAFEALIGN_SET_UINT32(&buf[c], htobe32(modulus_len + 1), &c);
262 SAFEALIGN_SETMEM_VALUE(&buf[c], '\0', unsigned char, &c);
263 safealign_memcpy(&buf[c], modulus, modulus_len, &c);
265 *key = buf;
272 talloc_free(buf);