qcrypto_signature_verify_oneshot()

Updated: October 26, 2022

Verify a signature in a single operation

Synopsis:

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

Arguments:

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

Library:

libqcrypto

Description:

This function combines qcrypto_signature_update() and qcrypto_signature_verify() in one operation for cases where the data size is known in advance, is small enough that it can be passed in a single operation, or both.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.