tuweni / org.apache.tuweni.crypto.sodium / Sodium / loadLibrary

loadLibrary

static fun loadLibrary(path: Path!): Unit (source)

Load and initialize the native libsodium shared library.

If this method returns successfully (without throwing a LinkageError), then all future calls to methods provided by this class will use the loaded library.

Parameters

path - Path!: The path to the shared library.

Exceptions

LinkageError - If the library cannot be found, dependent libraries are missing, or cannot be initialized.