serverSum returns the contents of the verify_data member of a server's Finished message.
(masterSecret []byte)
| 208 | // serverSum returns the contents of the verify_data member of a server's |
| 209 | // Finished message. |
| 210 | func (h finishedHash) serverSum(masterSecret []byte) []byte { |
| 211 | out := make([]byte, finishedVerifyLength) |
| 212 | h.prf(out, masterSecret, serverFinishedLabel, h.Sum()) |
| 213 | return out |
| 214 | } |
| 215 | |
| 216 | // hashForClientCertificate returns the handshake messages so far, pre-hashed if |
| 217 | // necessary, suitable for signing by a TLS client certificate. |
no test coverage detected