Lines Matching refs:cbb

241 /* CBB_init initialises |cbb| with |initial_capacity|. Since a |CBB| grows as
244 OPENSSL_EXPORT int CBB_init(CBB *cbb, size_t initial_capacity);
246 /* CBB_init_fixed initialises |cbb| to write to |len| bytes at |buf|. Since
249 OPENSSL_EXPORT int CBB_init_fixed(CBB *cbb, uint8_t *buf, size_t len);
251 /* CBB_cleanup frees all resources owned by |cbb| and other |CBB| objects
254 OPENSSL_EXPORT void CBB_cleanup(CBB *cbb);
264 OPENSSL_EXPORT int CBB_finish(CBB *cbb, uint8_t **out_data, size_t *out_len);
267 * |CBB| objects of |cbb| to be invalidated. It returns one on success or zero
269 OPENSSL_EXPORT int CBB_flush(CBB *cbb);
271 /* CBB_add_u8_length_prefixed sets |*out_contents| to a new child of |cbb|. The
272 * data written to |*out_contents| will be prefixed in |cbb| with an 8-bit
274 OPENSSL_EXPORT int CBB_add_u8_length_prefixed(CBB *cbb, CBB *out_contents);
276 /* CBB_add_u16_length_prefixed sets |*out_contents| to a new child of |cbb|.
277 * The data written to |*out_contents| will be prefixed in |cbb| with a 16-bit,
279 OPENSSL_EXPORT int CBB_add_u16_length_prefixed(CBB *cbb, CBB *out_contents);
281 /* CBB_add_u24_length_prefixed sets |*out_contents| to a new child of |cbb|.
282 * The data written to |*out_contents| will be prefixed in |cbb| with a 24-bit,
284 OPENSSL_EXPORT int CBB_add_u24_length_prefixed(CBB *cbb, CBB *out_contents);
291 OPENSSL_EXPORT int CBB_add_asn1(CBB *cbb, CBB *out_contents, uint8_t tag);
293 /* CBB_add_bytes appends |len| bytes from |data| to |cbb|. It returns one on
295 OPENSSL_EXPORT int CBB_add_bytes(CBB *cbb, const uint8_t *data, size_t len);
297 /* CBB_add_space appends |len| bytes to |cbb| and sets |*out_data| to point to
301 OPENSSL_EXPORT int CBB_add_space(CBB *cbb, uint8_t **out_data, size_t len);
303 /* CBB_add_u8 appends an 8-bit number from |value| to |cbb|. It returns one on
305 OPENSSL_EXPORT int CBB_add_u8(CBB *cbb, uint8_t value);
307 /* CBB_add_u8 appends a 16-bit, big-endian number from |value| to |cbb|. It
309 OPENSSL_EXPORT int CBB_add_u16(CBB *cbb, uint16_t value);
311 /* CBB_add_u24 appends a 24-bit, big-endian number from |value| to |cbb|. It
313 OPENSSL_EXPORT int CBB_add_u24(CBB *cbb, uint32_t value);
315 /* CBB_add_asn1_uint64 writes an ASN.1 INTEGER into |cbb| using |CBB_add_asn1|
318 OPENSSL_EXPORT int CBB_add_asn1_uint64(CBB *cbb, uint64_t value);