This repository provides a port of libsodium as an external library for Unikraft.
libsodium on Unikraft provides a minimal configuration of the sodium library, ie the
equivalent state of configuring libsodium using configure --enable-minimal
.
libsodium on Unikraft depends on the following Unikraft libraries:
- lib-newlib (external)
- ukswrand (internal)
- posix-event (internal)
All dependencies are automatically enabled via KConfig.
In your application's Makefile sure you declare newlib before libsodium:
LIBS := $(UK_LIBS)/lib-newlib:$(UK_LIBS)/lib-libsodium
To run the tests, select the Enable libsodium tests
option in menuconfig. Alternatively you can
select the Enable all tests across all libraries
option under the configuration of the uktest
library.
Notice: Running the tests on the linuxu platform requires increasing the heap size to 16MiB.
For more information, see: