From 1c52706f1de338a14127eac86fcf6da4c6f9db41 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Sat, 17 Aug 2024 08:47:04 +0200 Subject: [PATCH] allow access to `SecretBox.nonce` (#20) --- secret_box.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/secret_box.v b/secret_box.v index f6222a2..011f5a7 100644 --- a/secret_box.v +++ b/secret_box.v @@ -11,9 +11,10 @@ pub const public_key_size = 32 // int(C.crypto_secretbox_PUBLICKEYBYTES) pub const secret_key_size = 32 // int(C.crypto_secretbox_PUBLICKEYBYTES) pub struct SecretBox { - nonce [24]u8 mut: key [32]u8 +pub: + nonce [24]u8 } pub fn new_secret_box(key string) SecretBox {