Equal compares two hash strings for equality without leaking timing information.
(hash1 string, hash2 string)
| 58 | |
| 59 | // Equal compares two hash strings for equality without leaking timing information. |
| 60 | func Equal(hash1 string, hash2 string) bool { |
| 61 | return subtle.ConstantTimeCompare([]byte(hash1), []byte(hash2)) == 1 |
| 62 | } |
no outgoing calls
searching dependent graphs…