PQLR
Postquantum Crypto Library by QAPP
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
alg.h File Reference
#include <stdint.h>
#include <pqlr/common/api.h>

Go to the source code of this file.

Macros

#define PQLR_ALG_UNKNOWN   "unknown"
 
#define PQLR_ALG_ERROR   -1
 
#define PQLR_ALG_OPTION_ENABLE_HW_ACC   0x00000001u
 
#define PQLR_ALG_OPTION_ENABLE_PROXY   0x00000002u
 

Typedefs

typedef struct pqlr_alg_st * pqlr_alg
 PQLR algorithm instance handle. More...
 

Functions

PQLR_API pqlr_alg pqlr_alg_new (const char *alg_str)
 Creates pqlr_alg instance. More...
 
PQLR_API void pqlr_alg_free (pqlr_alg alg)
 Frees pqlr_alg instance and all corresponding resources. More...
 
PQLR_API const char * pqlr_alg_get_str (const pqlr_alg alg)
 Gets a string with the name of PQLR algorithm. More...
 
PQLR_API int pqlr_alg_num_paramsets (const pqlr_alg alg)
 Gets available parameter sets for this algorithm. If the return value is n then all parameter sets from range [0; n) can be used. More...
 
PQLR_API int pqlr_alg_get_paramset (const pqlr_alg alg)
 Gets parameter set configured for given algorithm instance. More...
 
PQLR_API int pqlr_alg_set_paramset (pqlr_alg alg, int paramset)
 Enables selected parameter set. More...
 
PQLR_API int pqlr_alg_set_options (pqlr_alg alg, uint32_t options)
 Enables selected option. More...
 
PQLR_API void pqlr_alg_set_defaults (pqlr_alg alg)
 Configures the PQLR algorithm with default parameter and options set. More...
 

Macro Definition Documentation

◆ PQLR_ALG_ERROR

#define PQLR_ALG_ERROR   -1

◆ PQLR_ALG_UNKNOWN

#define PQLR_ALG_UNKNOWN   "unknown"