API reference / @evolu/common / Crypto
Crypto
đź”’
Interfaces
| Interface | Description |
|---|---|
| RandomBytes | - |
| RandomBytesDep | - |
| SymmetricCrypto | Symmetric cryptography. |
| SymmetricCryptoDecryptError | - |
| SymmetricCryptoDep | - |
| TimingSafeEqualDep | - |
Type Aliases
| Type Alias | Description |
|---|---|
| EncryptionKey | - |
| Entropy16 | - |
| Entropy32 | - |
| Entropy64 | - |
| TimingSafeEqual | Performs 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
| Variable | Description |
|---|---|
| EncryptionKey | The encryption key for SymmetricCrypto. |
| Entropy16 | - |
| Entropy32 | - |
| Entropy64 | - |
Functions
| Function | Description |
|---|---|
| createRandomBytes | - |
| createSlip21 | SLIP21. |
| createSymmetricCrypto | XChaCha20-Poly1305 encryption |
| deriveSlip21Node | Derives a single node in the SLIP-21 hierarchical key derivation. |
| padmePaddedLength | Returns the PADMÉ padded length for a given input length. |
| padmePaddingLength | Returns the PADMÉ padding length for a given input length. Uses padmePaddedLength. |