Skip to content

ulfl/tweetnacl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
rel
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published