API reference / @evolu/common / Crypto

Crypto

đź”’

Interfaces

InterfaceDescription
RandomBytes-
RandomBytesDep-
SymmetricCryptoSymmetric cryptography.
SymmetricCryptoDecryptError-
SymmetricCryptoDep-
TimingSafeEqualDep-

Type Aliases

Type AliasDescription
EncryptionKey-
Entropy16-
Entropy32-
Entropy64-
TimingSafeEqualPerforms a timing-safe comparison of two Uint8Arrays. Returns true if they are equal, false otherwise. Takes constant time regardless of where the arrays differ.

Variables

VariableDescription
EncryptionKeyThe encryption key for SymmetricCrypto.
Entropy16-
Entropy32-
Entropy64-

Functions

FunctionDescription
createRandomBytes-
createSlip21SLIP21.
createSymmetricCryptoXChaCha20-Poly1305 encryption
deriveSlip21NodeDerives a single node in the SLIP-21 hierarchical key derivation.
padmePaddedLengthReturns the PADMÉ padded length for a given input length.
padmePaddingLengthReturns the PADMÉ padding length for a given input length. Uses padmePaddedLength.

Was this page helpful?