![]() |
ISARA Quantum Resistant Toolkit
Version 1.1
Quantum resistant cryptographic primitives and algorithms.
|
Typedefs | |
typedef struct iqr_Context_struct | iqr_Context |
Functions | |
IQR_API iqr_retval | iqr_CreateContext (iqr_Context **context) |
IQR_API_UNENFORCED_RETURN iqr_retval | iqr_DestroyContext (iqr_Context **context) |
typedef struct iqr_Context_struct iqr_Context |
The Context object.
IQR_API iqr_retval iqr_CreateContext | ( | iqr_Context ** | context | ) |
Create and initialize a Context object.
The context parameter must be initialized to NULL
prior to calling this function. Otherwise, IQR_EINVPTR
will be returned.
The caller must free the context using iqr_DestroyContext()
.
[out] | context | Address of a context pointer. |
IQR_OK
on success, or a value from iqr_retval.h when an error occurs. IQR_API_UNENFORCED_RETURN iqr_retval iqr_DestroyContext | ( | iqr_Context ** | context | ) |
Clear and deallocate a Context object.
context will be set to NULL
prior to returning.
[in,out] | context | Context pointer. |
IQR_OK
on success, or a value from iqr_retval.h when an error occurs. ISARA Toolkit's Context object.
Many of the APIs in ISARA's toolkit require a Context object when creating a new object. It stores information about the Toolkit library itself, and keeps track of the registered implementations for SHA-2, SHA-3, and a Random Number Generator.