mbedtls_asn1_get_int() function
Retrieve an integer ASN.1 tag and its value. Updates the pointer to immediately behind the full tag.
Syntax
int mbedtls_asn1_get_int(unsigned char **p,
const unsigned char *end,
int *val);
Arguments
p
On entry, \c *p points to the start of the ASN.1 element. On successful completion, \c *p points to the first byte beyond the ASN.1 element. On error, the value of \c *p is undefined.
val
On success, the parsed value.
Return value
0 if successful. An ASN.1 error code if the input does not start with a valid ASN.1 INTEGER. #MBEDTLS_ERR_ASN1_INVALID_LENGTH if the parsed value does not fit in an \c int.
![]()
int mbedtls_asn1_get_int(unsigned char **p,![]()
int mbedtls_asn1_get_int(unsigned char **p,![]()
if ((ret = mbedtls_asn1_get_int(p, end, iterations)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(&p, end, iterations)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(&p, end, keylen)) != 0) {![]()
ret = mbedtls_asn1_get_int(p, end, ver);![]()
if ((ret = mbedtls_asn1_get_int(&p, end, &ver)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(&p, end, &version)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(&p, end, &version)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(&p, end, &version)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(&p, end2, salt_len)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(&p, end2, &trailer_field)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(p, end, ver)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(p, end, ver)) != 0) {![]()
if ((ret = mbedtls_asn1_get_int(p, end, ver)) != 0) {
mbedtls_asn1_get_int() is called by 12 functions and calls 1 function:
![]()
mbedtls_asn1_get_int()
mbedtls_asn1_get_int():
![]()
mbedtls_asn1_get_int()