Crate sodoken[−][src]
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
Buffer | Concrete newtype to abstract away dealing with the dynamic buffer type. |
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
AsBuffer | A buffer represents an array of bytes that may or may not be memory locked. |
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
init_once_rayon_thread_pool | Call this function before any other sodoken api if you wish to initialize with a custom rayon pool. A default pool will be created if not. Returns true if the sodoken rayon pool was previously uninitialized and now holds the pool that was passed in to this function. |
Type Definitions
SodokenResult | Result type for holochain_crypto. |