first commit

This commit is contained in:
2026-05-29 08:20:56 +01:00
commit 949299f58d
6368 changed files with 527176 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# @suaveplan/crypto-sodium — Changelog
## 0.0.0 (suaveplan)
Initial implementation on the suaveplan branch.
### Added
- `sodiumReady(): Promise<void>` — lazy WASM initialisation singleton.
- `sodiumAeadEngine` — XChaCha20-Poly1305 / ChaCha20-Poly1305 / AES-256-GCM AEAD engine.
- `sodiumAesGcmEngine` — AES-256-GCM–preferring AEAD engine (falls back to ChaCha20).
- `createSodiumAeadEngine(opts)` — factory for custom AEAD engine configurations.
- `sodiumSignEngine` — Ed25519 sign/verify/generateKeypair engine.
- `sodiumAgreeEngine` — X25519 Diffie-Hellman agree/generateKeypair engine.
- `sodiumSealedBoxEngine` — anonymous-sender sealed box (`crypto_box_seal`).
- `sodiumAuthBoxEngine` — authenticated box (`crypto_box_easy`).
- `cryptoKdf` — BLAKE2b-based deterministic subkey derivation.
- `cryptoAuth` / `cryptoAuthVerify` — BLAKE2b MAC.
- `cryptoPwhashStr` / `cryptoPwhashStrVerify` — Argon2id password hashing.
- `ristretto255` namespace — group operations (add, sub, mul, fromHash, toBytes, fromBytes, random).
- `SodiumError` + `SODIUM_CODES` — structured error surface.