crypto improvements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -13,7 +13,6 @@ extern XDefaultScreen
|
||||
extern XDrawString
|
||||
|
||||
func main[] : i64
|
||||
|
||||
let dpy: ptr = XOpenDisplay(0)
|
||||
let screen: ptr = XDefaultScreen(dpy)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user