Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.07 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.07 KB

libsodium for Unikraft

This repository provides a port of libsodium as an external library for Unikraft.

Configuration

libsodium on Unikraft provides a minimal configuration of the sodium library, ie the equivalent state of configuring libsodium using configure --enable-minimal.

Dependencies:

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

Testing:

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.

More info

For more information, see: