use separate sealer interfaces for long and short header packets

This commit is contained in:
Marten Seemann 2019-06-10 16:21:45 +08:00
parent c503769bcd
commit b2d3ef691e
12 changed files with 233 additions and 172 deletions

View file

@ -10,7 +10,7 @@ import (
)
var _ = Describe("AEAD", func() {
getSealerAndOpener := func(is1RTT bool) (Sealer, Opener) {
getSealerAndOpener := func(is1RTT bool) (ShortHeaderSealer, Opener) {
key := make([]byte, 16)
hpKey := make([]byte, 16)
rand.Read(key)
@ -29,7 +29,7 @@ var _ = Describe("AEAD", func() {
Context("message encryption", func() {
var (
sealer Sealer
sealer ShortHeaderSealer
opener Opener
)