The ChaCha20 counter is little endian, not big endian.
Reviewed by: cem Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D28755
This commit is contained in:
parent
a079e38b08
commit
a899ce4ba4
@ -27,7 +27,7 @@
|
||||
.\"
|
||||
.\" $FreeBSD$
|
||||
.\"
|
||||
.Dd February 18, 2021
|
||||
.Dd March 3, 2021
|
||||
.Dt CRYPTO 7
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -136,7 +136,7 @@ counter rollover.
|
||||
.Dv CRYPTO_CHACHA20
|
||||
accepts a 16 byte IV.
|
||||
The first 8 bytes are used as a nonce.
|
||||
The last 8 bytes are used as 64-bit big-endian block counter.
|
||||
The last 8 bytes are used as a 64-bit little-endian block counter.
|
||||
.Ss Authenticated Encryption with Associated Data Algorithms
|
||||
AEAD algorithms in OCF combine a stream cipher with an authentication
|
||||
algorithm to provide both secrecy and authentication.
|
||||
|
Loading…
Reference in New Issue
Block a user