Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
Destroy key handle when exiting cng.TLS1PRF
  • Loading branch information
qmuntal authored Feb 11, 2025
2 parents 50d2dfa + 18327f1 commit f49c8e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cng/tls1prf.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func TLS1PRF(result, secret, label, seed []byte, h func() hash.Hash) error {
if err := bcrypt.GenerateSymmetricKey(alg, &kh, nil, secret, 0); err != nil {
return err
}
defer bcrypt.DestroyKey(kh)

buffers := make([]bcrypt.Buffer, 0, 3)
if len(label) > 0 {
Expand Down

0 comments on commit f49c8e1

Please sign in to comment.