re-add crypto test

This commit is contained in:
Lucas Clemente
2016-05-02 14:40:43 +02:00
parent 623bf065fd
commit a6d3dca74c

View File

@@ -241,5 +241,15 @@ var _ = Describe("Crypto setup", func() {
Expect(err).To(MatchError("authentication failed"))
})
})
Context("forward secure encryption", func() {
It("is used after receiving forward secure packet", func() {
doCHLO()
_, err := cs.Open(0, []byte{}, []byte("forward secure encrypted"))
Expect(err).ToNot(HaveOccurred())
d := cs.Seal(0, []byte{}, []byte("foobar"))
Expect(d).To(Equal([]byte("forward secure encrypted")))
})
})
})
})