Skip to content

Commit

Permalink
Fix encapsulation seed size
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-wood authored and bwesterb committed Apr 6, 2023
1 parent f4c0e87 commit f0db288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpke/hpke.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0db288

Please sign in to comment.