mbedtls_asn1_write_octet_string() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_asn1_write_octet_string()

mbedtls_asn1_write_octet_string() function

Write an octet string tag (#MBEDTLS_ASN1_OCTET_STRING) and value in ASN.1 format.

Syntax

int mbedtls_asn1_write_octet_string( unsigned char **p,     unsigned char *start,     const unsigned char *buf,     size_t size );
Implemented in asn1write.c:326

Arguments

p

The reference to the current position pointer.

start

The start of the buffer, for bounds-checking.

buf

The buffer holding the data to write.

size

The length of the data buffer \p buf.

Return value

The number of bytes written to \p p on success. A negative error code on failure.

Notes

This function works backwards in data buffer.

References

LocationText
asn1write.c:326
int mbedtls_asn1_write_octet_string( unsigned char **p, unsigned char *start,
asn1write.h:300
int mbedtls_asn1_write_octet_string( unsigned char **p, unsigned char *start,

Call Tree

Functions called by mbedtls_asn1_write_octet_string()
mbedtls_asn1_write_octet_string()
Data read by mbedtls_asn1_write_octet_string()
Data written by mbedtls_asn1_write_octet_string()
mbedtls_asn1_write_octet_string()
mbedtls_asn1_write_octet_string()::ret
all items filtered out
Type of mbedtls_asn1_write_octet_string()
mbedtls_asn1_write_octet_string()
size_t
all items filtered out