[][src]Module etebase::utils

Constants

SYMMETRIC_KEY_SIZE

The size of a symmetric encryption key

SYMMETRIC_NONCE_SIZE

The size of a symmetric encryption nonce

SYMMETRIC_TAG_SIZE

The size of a symmetric encryption tag

Traits

MsgPackSerilization

A trait for serializing and deserializing to MsgPack

Functions

from_base64

Convert a Base64 URL encoded string to a buffer

get_padding

Return the recommended padding length for a buffer of specific length

memcmp

A constant-time comparison function

randombytes

Return a buffer filled with cryptographically random bytes

randombytes_deterministic

Return a buffer filled with deterministically cryptographically random bytes

to_base64

Convert a buffer to a Base64 URL encoded string

Type Definitions

StrBase64
StringBase64