-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Description
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
Try to compile code that uses std.crypto.stream.chacha.ChaCha20With64BitNonce.stream:
counterparameter isu32notu64- As a result, you also get a compile error from std:
/usr/lib/zig/std/crypto/chacha20.zig:607:50: error: type 'u5' cannot represent integer value '32'
c[1] = @as(u32, @truncate(counter >> 32));
^~
Expected Behavior
ChaCha20With64BitNonce.stream should have counter: u64 parameter like .xor does
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior