crypto improvements

This commit is contained in:
2026-03-05 20:04:20 +01:00
parent af0ae49abe
commit 0dc130b85c
6 changed files with 52 additions and 37 deletions

View File

@@ -15,7 +15,7 @@ func main[] : i64
let input: str = "Hello, World!"
let input_len: i64 = str.len(input)
let ciphertext: ptr = crypto.xchacha20.xor(key, nonce, input, input_len)
let ciphertext: ptr = crypto.xchacha20.xor_no_auth(key, nonce, input, input_len)
io.println(str.hex_encode(ciphertext, input_len))
// X25519