mirror of
https://github.com/logos-messaging/noise.git
synced 2026-01-02 14:13:07 +00:00
Fix reversed extra and info
This commit is contained in:
parent
84c8891ca7
commit
33aa69fc14
@ -157,7 +157,7 @@ func (c *Crypter) DecryptBody(authtext, ciphertext []byte) ([]byte, error) {
|
||||
|
||||
func (c *Crypter) deriveKey(dh, cv []byte) ([]byte, []byte) {
|
||||
extra := append(c.Cipher.AppendName(c.scratch[:0]), c.KDFNum)
|
||||
k := DeriveKey(dh, extra, cv, CVLen+c.Cipher.CCLen())
|
||||
k := DeriveKey(dh, cv, extra, CVLen+c.Cipher.CCLen())
|
||||
c.KDFNum++
|
||||
return k[:CVLen], k[CVLen:]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user