Leancrypto 1.6.0
Post-Quantum Cryptographic Library
Loading...
Searching...
No Matches
lc_init.h File Reference

Go to the source code of this file.

Functions

int lc_init (unsigned int flags)
 Initialization of leancrypto.

Function Documentation

◆ lc_init()

int lc_init ( unsigned int flags)

Initialization of leancrypto.

This function invokes all necessary initialization functions required at the loading time of leancrypto. However, this function is only needed for environments without a constructor functionality such as the Linux kernel or the EFI environment.

For regular environments such as Linux, this function is not required to be called. But it does not hurt to be called.

Note
If this function is called, no other leancrypto service must be offered as this function may alter the global leancrypto state.
Parameters
[in]flagscurrently unused
Returns
0 on success, < 0 on error