crypto_public_key_from_cert() function
crypto_public_key_from_cert - Import an RSA public key from a certificate @buf: DER encoded X.509 certificate @len: Certificate buffer length in bytes Returns: Pointer to public key or %NULL on failure This function can just return %NULL if the crypto library does not support X.509 parsing. In that case, internal code will be used to parse the certificate and public key is imported using crypto_public_key_import(). This function is only used with internal TLSv1 implementation (CONFIG_TLS=internal). If that is not used, the crypto wrapper does not need to implement this.
![]()
*pk = crypto_public_key_from_cert(buf, len);
crypto_public_key_from_cert() is called by 1 function and calls 11 functions:
![]()
crypto_public_key_from_cert()
crypto_public_key_from_cert() reads 1 variable:
![]()
crypto_public_key_from_cert()
crypto_public_key_from_cert() allocates 2 typess and frees 2 typess:
![]()
crypto_public_key_from_cert()