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

◆ cc3xx_asn1_get_int()

psa_status_t cc3xx_asn1_get_int ( unsigned char ** p,
const unsigned char * end,
int * val )

Retrieve an integer ASN.1 tag and its value. Updates the pointer to immediately behind the full tag.

Parameters
pOn entry, *p points to the start of the ASN.1 element. On successful completion, *p points to the first byte beyond the ASN.1 element. On error, the value of *p is undefined.
endEnd of data.
valOn success, the parsed value.
Returns
PSA_SUCCESS if successful.
PSA_ERROR_BUFFER_TOO_SMALL if the buffer is too small.
PSA_ERROR_GENERIC_ERROR if any other error occured.