mbedtls_pk_parse_subpubkey() function
Parse a SubjectPublicKeyInfo DER structure
Arguments
p
the position in the ASN.1 data
pk
The PK context to fill. It must have been initialized but not set up.
Return value
0 if successful, or a specific PK error code
![]()
int mbedtls_pk_parse_subpubkey(unsigned char **p, const unsigned char *end,![]()
int mbedtls_pk_parse_subpubkey(unsigned char **p, const unsigned char *end,![]()
ret = mbedtls_pk_parse_subpubkey(&p, p + pem.buflen, ctx);![]()
ret = mbedtls_pk_parse_subpubkey(&p, p + keylen, ctx);![]()
if ((ret = mbedtls_pk_parse_subpubkey(&p, end, &crt->pk)) != 0) {![]()
if ((ret = mbedtls_pk_parse_subpubkey(&p, end, &csr->pk)) != 0) {
mbedtls_pk_parse_subpubkey() is called by 3 functions and calls 12 functions:
![]()
mbedtls_pk_parse_subpubkey()
mbedtls_pk_parse_subpubkey() reads 7 variables:
![]()
mbedtls_pk_parse_subpubkey()