Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TweetNaCl for Erlang

This library is an Erlang interface to the TweetNaCl cryptographic functions. It is meant to encrypt/decrypt small messages (< 30k) and not bulk data.

The design goals for this project are:

  • Keep the implementation as minimal and simple as possible to allow for easy security review.

  • Prioritize simplicity and robustness over performance.

  • Focus on supporting enc/dec for small messages.

  • Focus on UNIX systems.

  • Support for Erlang runtime code upgrades is not a priority.

In order to execute as regular NIFs, without degrading Erlang VM scheduler performance, the maximum message size for encryption / decryption has been capped at 30k. This to keep the execution time below 1ms (see http://erlang.org/doc/man/erl_nif.html).

Note that this library is currently work in progress.

Copyright (c) 2016 Ulf Leopold.

About

Erlang NIF interface to TweetNaCl.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages