qcrypto_signature_verify()

Verify a signature

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_signature_verify(qcrypto_ctx_t *ctx,
                             const uint8_t *sig,
                             size_t sigsize,
                             int *status)

Arguments:

ctx
The algorithm context object.
sig
The signature buffer.
sigsize
The signature buffer size.
status
The verification result.

Library:

libqcrypto

Description:

This function verifies the input data digest using the specified algorithm, its arguments, and a public key. The result is set in status where 1 means the signature was verified successfully and 0 means that the verification failed.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.