Crate sodoken[−][src]
Expand description
lib SOdium + haDOKEN = SODOKEN!
libsodium wrapper providing tokio safe memory secure api access.
Modules
hash | Api functions related to digests and hashing. |
random | Api functions related to cryptographically secure randomness / entropy. |
sign | Api functions related to cryptographic signatures and verification. |
Structs
BufRead | A concrete read-only buffer type that may or may not be memlocked. |
BufReadMemlocked | This read-only buffer type is memlocked. Use this for passwords / private keys, etc, but NOT everything, locked memory is a finite resource. |
BufWrite | A concrete writable buffer type that may or may not be memlocked. |
BufWriteMemlocked | This writable buffer type is memlocked. Use this for passwords / private keys, etc, but NOT everything, locked memory is a finite resource. |
ReadGuard | A read guard, indicating we have gained access to read buffer memory. |
WriteGuard | A write guard, indicating we have gained access to write buffer memory. |
Enums
SodokenError | Error type for holochain_crypto. |
Traits
AsBufRead | A readable buffer that may or may not be memlocked. |
AsBufWrite | A writable buffer that may or may not be memlocked. |
AsRead | Indicates we can dereference an item as a readable byte array. |
AsWrite | Indicates we can dereference an item as a mutable byte array. |
Functions
new_buf_read_no_lock | Construct a new read-only buffer that is NOT memlocked. |
new_buf_write_no_lock | Construct a new writable buffer that is NOT memlocked. |
Type Definitions
BufReadNoLock | This concrete read-only buffer type is NOT memlocked. |
BufWriteNoLock | This concrete writable buffer type is NOT memlocked. |
SodokenResult | Result type for holochain_crypto. |