qcrypto_mac_request()

Request a MAC algorithm

Synopsis:

#include <qcrypto/qcrypto.h>
int qcrypto_mac_request(const char *name,
                        const char *tag,
                        unsigned flags,
                        qcrypto_ctx_t **ctx)

Arguments:

name
The algorithm name (for example, hmac-sha256).
tag
The tag value that identifies the plugin in the qcrypto library configuration file to retrieve the algorithm from; or NULL, to use the default tag (__progname).
flags
Reserved for future use.
ctx
A context pointer that is filled with the algorithm context on success.

Library:

libqcrypto

Description:

This function requests a particular algorithm from the library.

Returns:

QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred.