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

View File

@@ -1,4 +1,4 @@
// needs to be compiled with -m -C="/usr/local/lib/libraylib.a -lm"
// needs to be compiled with -m -C="-lraylib"
extern InitWindow
extern SetTargetFPS
extern WindowShouldClose

View File

@@ -13,7 +13,6 @@ extern XDefaultScreen
extern XDrawString
func main[] : i64
let dpy: ptr = XOpenDisplay(0)
let screen: ptr = XDefaultScreen(dpy)