Skip to content

Commit

Permalink
fix hkdf construction
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Sep 29, 2023
1 parent 7324555 commit bc373e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cng/hkdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func newHKDF(h func() hash.Hash, secret, salt []byte, info []byte) (*hkdf, error
bcrypt.DestroyKey(kh)
return nil, err
}
k := &hkdf{kh, info, ch.Size(), nil, 0}
k := &hkdf{kh, info, ch.Size(), 0, nil}
runtime.SetFinalizer(k, (*hkdf).finalize)
return k, nil
}
Expand Down

0 comments on commit bc373e0

Please sign in to comment.