mbedtls_asn1_write_algorithm_identifier() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_asn1_write_algorithm_identifier()

mbedtls_asn1_write_algorithm_identifier() function

Write an AlgorithmIdentifier sequence in ASN.1 format.

Syntax

int mbedtls_asn1_write_algorithm_identifier( unsigned char **p,     unsigned char *start,     const char *oid,     size_t oid_len,     size_t par_len );
Implemented in asn1write.c:196

Arguments

p

The reference to the current position pointer.

start

The start of the buffer, for bounds-checking.

oid

The OID of the algorithm to write.

oid_len

The length of the algorithm's OID.

par_len

The length of the parameters, which must be already written. If 0, NULL parameters are added

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:196
int mbedtls_asn1_write_algorithm_identifier( unsigned char **p, unsigned char *start,
asn1write.h:157
int mbedtls_asn1_write_algorithm_identifier( unsigned char **p,

Call Tree

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