(m *clientHelloMsg, binderKey []byte, transcript hash.Hash, finishedHash func([]byte, hash.Hash) []byte)
| 1317 | } |
| 1318 | |
| 1319 | func computeAndUpdatePSK(m *clientHelloMsg, binderKey []byte, transcript hash.Hash, finishedHash func([]byte, hash.Hash) []byte) error { |
| 1320 | helloBytes, err := m.marshalWithoutBinders() |
| 1321 | if err != nil { |
| 1322 | return err |
| 1323 | } |
| 1324 | transcript.Write(helloBytes) |
| 1325 | pskBinders := [][]byte{finishedHash(binderKey, transcript)} |
| 1326 | return m.updateBinders(pskBinders) |
| 1327 | } |
no test coverage detected
searching dependent graphs…