PQLR
Postquantum Crypto Library by QAPP
pqlr_error_handler_callback Struct Reference

Pqlr user's error handler callback interface. More...

#include <pqlr/common/error_handler.h>

Data Fields

pqlr_error_handler_fnc callback
 Error handler function. You can pass pointer to custom fatal error handler function for correct resources release before program stop. More...
 
void * ctx
 This is a context pointer to be passed to user's callback. User is able to store and access any state of his software resources by this address. More...
 

Detailed Description

Pqlr user's error handler callback interface.

In case of fatal error in any pqlr algorithm abort() will be called. If set this callback would be called just before the abort.

See also
pqlr_error_handler_fnc

Field Documentation

◆ callback

pqlr_error_handler_fnc pqlr_error_handler_callback::callback

Error handler function. You can pass pointer to custom fatal error handler function for correct resources release before program stop.

◆ ctx

void* pqlr_error_handler_callback::ctx

This is a context pointer to be passed to user's callback. User is able to store and access any state of his software resources by this address.


The documentation for this struct was generated from the following file: