mbedtls_asn1_get_alg() function
Retrieve an AlgorithmIdentifier ASN.1 sequence. Updates the pointer to immediately behind the full AlgorithmIdentifier.
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 AlgorithmIdentifier element. On error, the value of \c *p is undefined.
alg
The buffer to receive the OID.
params
The buffer to receive the parameters. This is zeroized if there are no parameters.
Return value
0 if successful or a specific ASN.1 or MPI error code.
![]()
int mbedtls_asn1_get_alg(unsigned char **p,![]()
int mbedtls_asn1_get_alg(unsigned char **p,![]()
if ((ret = mbedtls_asn1_get_alg(p, end, alg, ¶ms)) != 0) {![]()
if ((ret = mbedtls_asn1_get_alg(&p, end, &kdf_alg_oid,![]()
if ((ret = mbedtls_asn1_get_alg(&p, end, &enc_scheme_oid,![]()
if ((ret = mbedtls_asn1_get_alg(p, end, &alg_oid, params)) != 0) {![]()
if ((ret = mbedtls_asn1_get_alg(&p, end, &pbe_alg_oid, &pbe_params)) != 0) {
mbedtls_asn1_get_alg() is called by 5 functions and calls 3 functions:
![]()
mbedtls_asn1_get_alg()
mbedtls_asn1_get_alg() reads 1 variable and writes 2 variables:
![]()
mbedtls_asn1_get_alg()