mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 23:26:52 +01:00
(cherry picked from commit f15d10fc54)
Co-authored-by: Nate Brown <nbrown.us@gmail.com>
This commit is contained in:
1 parent
20c68ef3c4
commit
33abaf95cd
12 files changed
+276
-16
No files matched your search
@@ -24,6 +24,9 @@ func (s *CipherStateChaChaPoly) EncryptDanger(out, ad, plaintext []byte, n uint6
|
||||
if s == nil {
|
||||
return nil, errors.New("no cipher state available to encrypt")
|
||||
}
|
||||
if n >= RejectAfterMessages {
|
||||
return nil, ErrMessageCounterExhausted
|
||||
}
|
||||
nb[0] = 0
|
||||
nb[1] = 0
|
||||
nb[2] = 0
|
||||
|
||||
Reference in new issue
Block a user