mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
use separate sealer interfaces for long and short header packets
This commit is contained in:
parent
c503769bcd
commit
b2d3ef691e
12 changed files with 233 additions and 172 deletions
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue