#include <openssl/pool.h>
#include <assert.h>
#include <string.h>
#include <openssl/bytestring.h>
#include <openssl/mem.h>
#include <openssl/rand.h>
#include <openssl/siphash.h>
#include <openssl/thread.h>
#include "../internal.h"
#include "internal.h"
static uint32_t CRYPTO_BUFFER_hash(const CRYPTO_BUFFER *buf) { … }
static int CRYPTO_BUFFER_cmp(const CRYPTO_BUFFER *a, const CRYPTO_BUFFER *b) { … }
CRYPTO_BUFFER_POOL* CRYPTO_BUFFER_POOL_new(void) { … }
void CRYPTO_BUFFER_POOL_free(CRYPTO_BUFFER_POOL *pool) { … }
static void crypto_buffer_free_object(CRYPTO_BUFFER *buf) { … }
static CRYPTO_BUFFER *crypto_buffer_new(const uint8_t *data, size_t len,
int data_is_static,
CRYPTO_BUFFER_POOL *pool) { … }
CRYPTO_BUFFER *CRYPTO_BUFFER_new(const uint8_t *data, size_t len,
CRYPTO_BUFFER_POOL *pool) { … }
CRYPTO_BUFFER *CRYPTO_BUFFER_alloc(uint8_t **out_data, size_t len) { … }
CRYPTO_BUFFER *CRYPTO_BUFFER_new_from_CBS(const CBS *cbs,
CRYPTO_BUFFER_POOL *pool) { … }
CRYPTO_BUFFER *CRYPTO_BUFFER_new_from_static_data_unsafe(
const uint8_t *data, size_t len, CRYPTO_BUFFER_POOL *pool) { … }
void CRYPTO_BUFFER_free(CRYPTO_BUFFER *buf) { … }
int CRYPTO_BUFFER_up_ref(CRYPTO_BUFFER *buf) { … }
const uint8_t *CRYPTO_BUFFER_data(const CRYPTO_BUFFER *buf) { … }
size_t CRYPTO_BUFFER_len(const CRYPTO_BUFFER *buf) { … }
void CRYPTO_BUFFER_init_CBS(const CRYPTO_BUFFER *buf, CBS *out) { … }