Day 52 Layer 0 Encryption Engine
December 25, 2021•41 words
What I did: Studying Encryption Crypto
Time spent: 112.633
Comments:
Updating application setup to pass context thru.
Studying https://github.com/jedisct1/libsodium/blob/master/src/libsodium/crypto_secretstream/xchacha20poly1305/secretstream_xchacha20poly1305.c to understand why
sodium.crypto_aead_xchacha20poly1305_ietf_encrypt(
plaintext,
assocData,
null,
await Utils.hexStringToArrayBuffer(nonce),
await Utils.hexStringToArrayBuffer(key)
)
Alright linking and reading https://doc.libsodium.org/secret-key_cryptography/aead