(hash func() H, secret []byte, label string, transcript hash.Hash)
| 49 | } |
| 50 | |
| 51 | func deriveSecret[H hash.Hash](hash func() H, secret []byte, label string, transcript hash.Hash) []byte { |
| 52 | if transcript == nil { |
| 53 | transcript = hash() |
| 54 | } |
| 55 | return ExpandLabel(hash, secret, label, transcript.Sum(nil), transcript.Size()) |
| 56 | } |
| 57 | |
| 58 | const ( |
| 59 | resumptionBinderLabel = "res binder" |
no test coverage detected
searching dependent graphs…