Helper function to convert hash output to hex string for comparison
(hash [16]byte)
| 11 | |
| 12 | // Helper function to convert hash output to hex string for comparison |
| 13 | func toHexString(hash [16]byte) string { |
| 14 | return hex.EncodeToString(hash[:]) |
| 15 | } |
| 16 | |
| 17 | // Test vectors for MD5 (from RFC 1321 and other known sources) |
| 18 | var tests = []struct { |