nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ cc3xx_asn1_write_len()

int cc3xx_asn1_write_len ( unsigned char ** p,
const unsigned char * start,
size_t len )

Write a length field in ASN.1 format.

Note
This function works backwards in data buffer.
Parameters
pThe reference to the current position pointer.
startThe start of the buffer, for bounds-checking.
lenThe length value to write.
Returns
The number of bytes written to p on success.
PSA_ERROR_BUFFER_TOO_SMALL if the buffer is too small.
PSA_ERROR_GENERIC_ERROR if any other error occured.