gnutls_pubkey_get_verify_algorithm(3)

gnutls_pubkey_get_verify_algorithm3

Api function

Usage

#include <gnutls/abstract.h>

int gnutls_pubkey_get_verify_algorithm(gnutls_pubkey_t key, const gnutls_datum_t * signature, gnutls_digest_algorithm_t * hash);

Arguments

gnutls_pubkey_t key

Holds the certificate

const gnutls_datum_t * signature

contains the signature

gnutls_digest_algorithm_t * hash

The result of the call with the hash algorithm used for signature

Overview

This function will read the certifcate and the signed data to determine the hash algorithm used to generate the signature.

Returns

On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.

Since

2.12.0

Reporting bugs

Report bugs to <[email protected]>.
Home page: http://www.gnutls.org

From gnutls-doc 3.3.8-6+deb8u7 in Debian 8 (Jessie). Parsed by carta from the page's man source.