Module etebase::utils

source ·

Constants

Traits

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 if x and y 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

Type Definitions