fastHash hashes input using a hashing algorithm that is fast, and returns the hash as a hex-encoded string. Do not use this for cryptographic purposes.
(input []byte)
| 135 | // is fast, and returns the hash as a hex-encoded string. |
| 136 | // Do not use this for cryptographic purposes. |
| 137 | func fastHash(input []byte) string { |
| 138 | h := fnv.New32a() |
| 139 | h.Write(input) |
| 140 | return fmt.Sprintf("%x", h.Sum32()) |
| 141 | } |
| 142 | |
| 143 | // saveCertResource saves the certificate resource to disk. This |
| 144 | // includes the certificate file itself, the private key, and the |
no test coverage detected
searching dependent graphs…