Skip to content

Commit af8f6c7

Browse files
committed
Clarify the use of a 64-bits ChaCha counter
1 parent d2bbc4d commit af8f6c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

std/src/std/crypto/chacha.inko

+3-3
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ type inline Matrix {
174174
#
175175
# # Limitations
176176
#
177-
# As our implementation is based on RFC 8439, the total message size is limited
178-
# to 256 GiB. When reaching this limit the cipher panics, as the alternative is
179-
# a silent overflow that could lead to weaker/broken encryption.
177+
# The implementation deviates from the RFC by using a 64-bits counter instead of
178+
# a 32-bits counter. If the counter overflows, the `ChaCha.encrypt` and
179+
# `ChaCha.decrypt` methods will panic.
180180
#
181181
# # Examples
182182
#

0 commit comments

Comments
 (0)