SilcCryptoAPI/silc_crypto_init

SYNOPSIS

    SilcBool silc_crypto_init(SilcStack stack);

DESCRIPTION

Initialize SILC Crypto Toolkit. This must be called once for every process. It initializes all libraries and registers builtin algorithms to the crypto library. If user wants to change the order of the registered algorithms, user can re-register them with their corresponding registering functions in the wanted order.

If `stack' is non-NULL, it will be used by some libraries as their main source for memory. A child stack is created from the `stack'. When silc_crypto_uninit is called the allocated memory is returned back to `stack' and the caller must then free `stack'.

Returns FALSE if the initialization failed. If this happens the SILC Crypto Toolkit cannot be used.