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

◆ cc3xx_asn1_write_big_integer()

int cc3xx_asn1_write_big_integer ( unsigned char ** p,
const unsigned char * start,
uint8_t * data,
size_t data_size )

Write an int tag and value in ASN.1 format represented as a uint8_t array.

Note
This function works backwards in data buffer.
Parameters
pThe reference to the current position pointer.
startThe start of the buffer, for bounds-checking.
dataBuffer containing the integer to be written.
data_sizeSize in bytes of the integer.
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.