Skip to content

Unikraft port of libsodium, a crypto library

License

Notifications You must be signed in to change notification settings

unikraft/lib-libsodium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: