Module lithos::nacl
[−]
[src]
This module implements the public-key authenticated encryption (crypto_box) and secret-key authenticated encryption (crypto_secretbox) primitives from NaCl, roughly following the corresponding C++ API.
For more information see: http://nacl.cr.yp.to/index.html
The original source of this module is here:
https://github.com/DaGenix/rust-crypto/compare/master...Yawning:nacl
Structs
DecryptionError |
Statics
crypto_box_NONCEBYTES |
The length of the crypto_box nonce in bytes. |
crypto_box_OVERHEAD |
The length of the crypto_box overhead in bytes. |
crypto_box_PUBLICKEYBYTES |
The length of the crypto_box public key in bytes. |
crypto_box_SECRETKEYBYTES |
The length of the crypto_box secret (private) key in bytes. |
crypto_secretbox_KEYBYTES |
The length of the crypto_secretbox key in bytes. |
crypto_secretbox_NONCEBYTES |
The length of the crypto_secretbox nonce in bytes. |
crypto_secretbox_OVERHEADBYTES |
The length of the crypto_secretbox overhead in bytes. |
Functions
crypto_box |
Public-key authenticated encryption. |
crypto_box_edwards_seal |
Create a sealed (anonymous) crypto box |
crypto_box_edwards_seal_open |
Open (decrypt) a sealed (anonymous) crypto box |
crypto_box_open |
Public-key authenticated decryption. |
crypto_box_seal |
Create a sealed (anonymous) crypto box |
crypto_box_seal_open |
Unseal an (anonymous) crypto box |
crypto_secretbox |
Secret-key authenticated encryption. |
crypto_secretbox_open |
Secret-key authenticated decryption. |