Skip to content

Commit

Permalink
add more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
qmuntal committed Sep 29, 2023
1 parent 1ba2099 commit 7324555
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cng/hkdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ type hkdf struct {
info []byte

hashLen int
buf []byte
n int
n int // count of bytes requested from Read
// buf contains the derived data.
// len(buf) can be larger than n, as Read may derive
// more data than requested and cache it in buf.
buf []byte
}

func (c *hkdf) finalize() {
Expand Down

0 comments on commit 7324555

Please sign in to comment.