mbedtls_asn1_write_raw_buffer() function
Write raw buffer data.
Syntax
int mbedtls_asn1_write_raw_buffer(unsigned char **p,
const unsigned char *start,
const unsigned char *buf,
size_t size);
Arguments
p
The reference to the current position pointer.
start
The start of the buffer, for bounds-checking.
buf
The data buffer to write.
size
The length of the data buffer.
Return value
The number of bytes written to \p p on success. A negative \c MBEDTLS_ERR_ASN1_XXX error code on failure.
Notes
This function works backwards in data buffer.
mbedtls_asn1_write_raw_buffer() is called by 8 functions:
![]()
mbedtls_asn1_write_raw_buffer()
mbedtls_asn1_write_raw_buffer():
![]()
mbedtls_asn1_write_raw_buffer()