Expand description
§VCL Cryptographic Primitives
Low-level cryptographic helpers used internally by VCLConnection:
KeyPair— Ed25519 signing/verifying key pairencrypt_payload— XChaCha20-Poly1305 AEAD encryptiondecrypt_payload— XChaCha20-Poly1305 AEAD decryptionhash_data— SHA-256 hashing
Structs§
Functions§
- decrypt_
payload - Decrypt
ciphertextwith XChaCha20-Poly1305 using the givenkeyandnonce. - encrypt_
payload - Encrypt
datawith XChaCha20-Poly1305 using the given 32-bytekey. - hash_
data - Compute a SHA-256 hash of
data. Returns a 32-byteVec<u8>.