mbedtls_asn1_write_bitstring() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_asn1_write_bitstring()

mbedtls_asn1_write_bitstring() function

Write a bitstring tag (#MBEDTLS_ASN1_BIT_STRING) and value in ASN.1 format.

Syntax

int mbedtls_asn1_write_bitstring( unsigned char **p,     unsigned char *start,     const unsigned char *buf,     size_t bits );
Implemented in asn1write.c:293

Arguments

p

The reference to the current position pointer.

start

The start of the buffer, for bounds-checking.

buf

The bitstring to write.

bits

The total number of bits in the bitstring.

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:293
int mbedtls_asn1_write_bitstring( unsigned char **p, unsigned char *start,
asn1write.h:283
int mbedtls_asn1_write_bitstring( unsigned char **p, unsigned char *start,

Call Tree

Functions called by mbedtls_asn1_write_bitstring()
mbedtls_asn1_write_bitstring()
Data read by mbedtls_asn1_write_bitstring()
Data written by mbedtls_asn1_write_bitstring()
mbedtls_asn1_write_bitstring()::ret
mbedtls_asn1_write_bitstring()::len
mbedtls_asn1_write_bitstring()::unused_bits
mbedtls_asn1_write_bitstring()::byte_len
all items filtered out
mbedtls_asn1_write_bitstring()
mbedtls_asn1_write_bitstring()::ret
mbedtls_asn1_write_bitstring()::len
mbedtls_asn1_write_bitstring()::unused_bits
mbedtls_asn1_write_bitstring()::byte_len
all items filtered out
Type of mbedtls_asn1_write_bitstring()
mbedtls_asn1_write_bitstring()
size_t
all items filtered out