Skip to content

Commit

Permalink
x.crypto.chacha20: make Cipher struct public (fix #21967) (#21968)
Browse files Browse the repository at this point in the history
  • Loading branch information
einar-hjortdal authored Jul 31, 2024
1 parent 2366582 commit 55f4412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/x/crypto/chacha20/chacha.v
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const cc2 = u32(0x79622d32) // 2-by
const cc3 = u32(0x6b206574) // te k

// Cipher represents ChaCha20 stream cipher instances.
struct Cipher {
pub struct Cipher {
mut:
// internal's of ChaCha20 states, ie, 16 of u32 words, 4 of ChaCha20 constants,
// 8 word (32 bytes) of keys, 3 word (24 bytes) of nonces and 1 word of counter
Expand Down

0 comments on commit 55f4412

Please sign in to comment.