Skip to content

Commit 1c52706

Browse files
authored
allow access to SecretBox.nonce (#20)
1 parent e0b088b commit 1c52706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

secret_box.v

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ pub const public_key_size = 32 // int(C.crypto_secretbox_PUBLICKEYBYTES)
1111
pub const secret_key_size = 32 // int(C.crypto_secretbox_PUBLICKEYBYTES)
1212

1313
pub struct SecretBox {
14-
nonce [24]u8
1514
mut:
1615
key [32]u8
16+
pub:
17+
nonce [24]u8
1718
}
1819

1920
pub fn new_secret_box(key string) SecretBox {

0 commit comments

Comments
 (0)