Constants
- The size of the private encryption key
- The size of the salt added to the password to derive the symmetric encryption key
- The size of a symmetric encryption key
- The size of a symmetric encryption nonce
- The size of a symmetric encryption tag
Traits
- A trait for serializing and deserializing to MsgPack
Functions
- Converts a Base64 URL encoded string to a Vec of bytes.
- Return the recommended padding length for a buffer of specific length
- A constant-time comparison function. Returns
true
ifx
andy
are equal. - Returns a buffer filled with cryptographically random bytes.
- A version of
randombytes
that returns a fixed-size array instead of a Vec. - Return a buffer filled with deterministically cryptographically random bytes
- Convert a buffer to a Base64 URL encoded string