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_encrypt_pkcs1_v15 - Public key encryption (PKCS #1 v1.5) @key: Public key @in: Plaintext buffer @inlen: Length of plaintext buffer in bytes @out: Output buffer for encrypted data @outlen: Length of output buffer in bytes; set to used length on success Returns: 0 on success, -1 on failure 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.
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().