(out []byte)
| 1068 | } |
| 1069 | |
| 1070 | func (hs *clientHandshakeState) sendFinished(out []byte) error { |
| 1071 | c := hs.c |
| 1072 | |
| 1073 | if err := c.writeChangeCipherRecord(); err != nil { |
| 1074 | return err |
| 1075 | } |
| 1076 | |
| 1077 | finished := new(finishedMsg) |
| 1078 | finished.verifyData = hs.finishedHash.clientSum(hs.masterSecret) |
| 1079 | if _, err := hs.c.writeHandshakeRecord(finished, &hs.finishedHash); err != nil { |
| 1080 | return err |
| 1081 | } |
| 1082 | copy(out, finished.verifyData) |
| 1083 | return nil |
| 1084 | } |
| 1085 | |
| 1086 | // defaultMaxRSAKeySize is the maximum RSA key size in bits that we are willing |
| 1087 | // to verify the signatures of during a TLS handshake. |
no test coverage detected