Lines Matching defs:buf
85 static int parse_bin(const char *value, unsigned char **buf, size_t *buflen);
118 unsigned char *buf;
127 OPENSSL_free(db->buf);
141 if (!parse_bin(value, &db->buf, &db->buflen))
178 memcpy(p, db->buf, db->buflen);
180 OPENSSL_free(db->buf);
181 db->buf = tbuf;
211 const unsigned char *buf,
222 if (fn(ctx, tb->buf, tb->buflen) <= 0)
275 static int parse_bin(const char *value, unsigned char **buf, size_t *buflen)
281 *buf = NULL;
293 *buf = OPENSSL_malloc(1);
294 if (*buf == NULL)
296 **buf = 0;
308 *buf = unescape(value, vlen, buflen);
309 return *buf == NULL ? 0 : 1;
313 if (!TEST_ptr(*buf = OPENSSL_hexstr2buf(value, &len))) {
393 static int digest_update_fn(void *ctx, const unsigned char *buf, size_t buflen)
395 return EVP_DigestUpdate(ctx, buf, buflen);
491 NULL, inbuf->buf, inbuf->buflen,
3282 static int digestsign_update_fn(void *ctx, const unsigned char *buf,
3285 return EVP_DigestSignUpdate(ctx, buf, buflen);
3337 static int digestverify_update_fn(void *ctx, const unsigned char *buf,
3340 return EVP_DigestVerifyUpdate(ctx, buf, buflen);