x.crypto.chacha20: make Cipher struct public (fix #21967) (#21968)

This commit is contained in:
Coachonko 2024-07-31 09:20:31 +02:00 committed by GitHub
parent 2366582528
commit 55f4412e5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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