MCPcopy
hub / github.com/XTLS/REALITY / sha1Hash

Function sha1Hash

key_agreement.go:108–114  ·  view source on GitHub ↗

sha1Hash calculates a SHA1 hash over the given byte slices.

(slices [][]byte)

Source from the content-addressed store, hash-verified

106
107// sha1Hash calculates a SHA1 hash over the given byte slices.
108func 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.

Callers 2

md5SHA1HashFunction · 0.85
hashForServerKeyExchangeFunction · 0.85

Calls 2

WriteMethod · 0.65
SumMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…