Found 5 other functions taking a
crypto_public_key
argument:
crypto_public_key_free - Free public key @key: Public key 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.
crypto_public_key_decrypt_pkcs1 - Decrypt PKCS #1 signature @key: Public key @crypt: Encrypted signature data (using the private key) @crypt_len: Encrypted signature data length @plain: Buffer for plaintext (at least crypt_len bytes) @plain_len: Plaintext length (max buffer size on input, real len on output); Returns: 0 on success, -1 on failure
tls_parse_cert - Parse DER encoded X.509 certificate and get public key @buf: ASN.1 DER encoded certificate @len: Length of the buffer @pk: Buffer for returning the allocated public key Returns: 0 on success, -1 on failure This functions parses an ASN.1 DER encoded X.509 certificate and retrieves the public key from it. The caller is responsible for freeing the public key by calling crypto_public_key_free().