sha1Hash calculates a SHA1 hash over the given byte slices.
(slices [][]byte)
| 106 | |
| 107 | // sha1Hash calculates a SHA1 hash over the given byte slices. |
| 108 | func sha1Hash(slices [][]byte) []byte { |
| 109 | hsha1 := sha1.New() |
| 110 | for _, slice := range slices { |
| 111 | hsha1.Write(slice) |
| 112 | } |
| 113 | return hsha1.Sum(nil) |
| 114 | } |
| 115 | |
| 116 | // md5SHA1Hash implements TLS 1.0's hybrid hash function which consists of the |
| 117 | // concatenation of an MD5 and SHA1 hash. |
no test coverage detected
searching dependent graphs…