Lines Matching refs:buf

53 	unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED25519SIZE];
56 memmove(buf, ed25519_pub_prefix, PUBPREFIXLEN);
57 memmove(buf + PUBPREFIXLEN, key, DNS_KEY_ED25519SIZE);
58 p = buf;
65 unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED25519SIZE];
73 p = buf;
78 memmove(key, buf + len - DNS_KEY_ED25519SIZE, DNS_KEY_ED25519SIZE);
89 unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED448SIZE];
92 memmove(buf, ed448_pub_prefix, PUBPREFIXLEN);
93 memmove(buf + PUBPREFIXLEN, key, DNS_KEY_ED448SIZE);
94 p = buf;
101 unsigned char buf[PUBPREFIXLEN + DNS_KEY_ED448SIZE];
109 p = buf;
114 memmove(key, buf + len - DNS_KEY_ED448SIZE, DNS_KEY_ED448SIZE);
127 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED25519SIZE];
130 memmove(buf, ed25519_priv_prefix, PRIVPREFIXLEN);
131 memmove(buf + PRIVPREFIXLEN, key, DNS_KEY_ED25519SIZE);
132 p = buf;
140 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED25519SIZE];
148 p = buf;
153 memmove(key, buf + len - DNS_KEY_ED25519SIZE, DNS_KEY_ED25519SIZE);
164 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED448SIZE];
167 memmove(buf, ed448_priv_prefix, PRIVPREFIXLEN);
168 memmove(buf + PRIVPREFIXLEN, key, DNS_KEY_ED448SIZE);
169 p = buf;
177 unsigned char buf[PRIVPREFIXLEN + DNS_KEY_ED448SIZE];
185 p = buf;
190 memmove(key, buf + len - DNS_KEY_ED448SIZE, DNS_KEY_ED448SIZE);
199 isc_buffer_t *buf = NULL;
206 result = isc_buffer_allocate(dctx->mctx, &buf, 64);
207 dctx->ctxdata.generic = buf;
214 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic;
218 if (buf != NULL)
219 isc_buffer_free(&buf);
225 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic;
234 result = isc_buffer_copyregion(buf, data);
238 length = isc_buffer_length(buf) + data->length + 64;
242 isc_buffer_usedregion(buf, &r);
245 isc_buffer_free(&buf);
259 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic;
277 isc_buffer_usedregion(buf, &tbsreg);
294 isc_buffer_free(&buf);
308 isc_buffer_t *buf = (isc_buffer_t *) dctx->ctxdata.generic;
325 isc_buffer_usedregion(buf, &tbsreg);
352 isc_buffer_free(&buf);
513 unsigned char *buf = NULL;
530 buf = isc_mem_get(key->mctx, len);
531 if (buf == NULL)
535 ret = priv_ed25519_from_ossl(pkey, buf);
538 priv.elements[0].data = buf;
543 buf = isc_mem_get(key->mctx, len);
544 if (buf == NULL)
548 ret = priv_ed448_from_ossl(pkey, buf);
551 priv.elements[0].data = buf;
557 if (buf != NULL)
558 isc_mem_put(key->mctx, buf, len);