From f0db2881a9618356223ed31090cdb33feb1e6d23 Mon Sep 17 00:00:00 2001 From: Christopher Wood Date: Thu, 6 Apr 2023 10:12:01 -0400 Subject: [PATCH] Fix encapsulation seed size --- hpke/hpke.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpke/hpke.go b/hpke/hpke.go index 10d0cd4ad..f77effae0 100644 --- a/hpke/hpke.go +++ b/hpke/hpke.go @@ -237,7 +237,7 @@ func (s *Sender) allSetup(rnd io.Reader) ([]byte, Sealer, error) { if rnd == nil { rnd = rand.Reader } - seed := make([]byte, scheme.SeedSize()) + seed := make([]byte, scheme.EncapsulationSeedSize()) _, err := io.ReadFull(rnd, seed) if err != nil { return nil, nil, err