mbedtls_asn1_write_int() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_asn1_write_int() function

Write an int tag (#MBEDTLS_ASN1_INTEGER) and value in ASN.1 format.

Syntax

int mbedtls_asn1_write_int( unsigned char **p,     unsigned char *start,     int val );
Implemented in asn1write.c:234

Arguments

p

The reference to the current position pointer.

start

The start of the buffer, for bounds-checking.

val

The integer value to write.

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.

References

LocationText
asn1write.c:234
int mbedtls_asn1_write_int( unsigned char **p, unsigned char *start, int val )
asn1write.h:191
int mbedtls_asn1_write_int( unsigned char **p, unsigned char *start, int val );

Call Tree

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