qcrypto_signature_verify_nodgst()

Updated: October 26, 2022

Verify a signature digest

Synopsis:

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

Arguments:

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

Library:

libqcrypto

Description:

This function verifies the input digest. It is used if the digest was calculated externally by another means and replaces qcrypto_signature_update() and qcrypto_signature_verify().

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.