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

◆ cc3xx_asn1_write_int()

int cc3xx_asn1_write_int ( unsigned char ** p,
unsigned char * start,
int val )

Write an int tag and value 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.
valThe integer value to write. It must be non-negative.
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.