mirror of
https://github.com/logos-messaging/noise.git
synced 2026-01-10 01:53:09 +00:00
Add additional roundtrip to test
This commit is contained in:
parent
63cdf72db2
commit
f585254b83
@ -42,4 +42,12 @@ func (s *S) TestRoundtrip(c *C) {
|
||||
plaintext, err := dec.Decrypt(ciphertext)
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(plaintext, DeepEquals, plain)
|
||||
|
||||
plain[0] = 'Y'
|
||||
ciphertext, err = enc.Encrypt(nil, nil, plain, 0)
|
||||
c.Assert(err, IsNil)
|
||||
|
||||
plaintext, err = dec.Decrypt(ciphertext)
|
||||
c.Assert(err, IsNil)
|
||||
c.Assert(plaintext, DeepEquals, plain)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user