Skip to content

Commit 5ab4b51

Browse files
committed
fixed comment
1 parent cc78e79 commit 5ab4b51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cipher/salsa20/salsa20.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Cipher struct {
1616
counter uint64
1717
}
1818

19-
// key is 32 bytes, nonce is 16 bytes.
19+
// key is 32 bytes, nonce is 8 bytes.
2020
func NewCipher(key, nonce []byte) (cipher.Stream, error) {
2121
var fixedSizedKey [32]byte
2222
if len(key) != 32 {
@@ -31,7 +31,7 @@ func NewCipher(key, nonce []byte) (cipher.Stream, error) {
3131
}, nil
3232
}
3333

34-
// key is 32 bytes, nonce is 16 bytes.
34+
// key is 32 bytes, nonce is 8 bytes.
3535
func NewCipherWithCounter(key, nonce []byte, counter uint64) (cipher.Stream, error) {
3636
var fixedSizedKey [32]byte
3737
if len(key) != 32 {

0 commit comments

Comments
 (0)