SupportedAlgorithms returns the names of the supported hashing schemes.
()
| 37 | |
| 38 | // SupportedAlgorithms returns the names of the supported hashing schemes. |
| 39 | func SupportedAlgorithms() []string { |
| 40 | var result []string |
| 41 | for k := range hashFunctions { |
| 42 | result = append(result, k) |
| 43 | } |
| 44 | |
| 45 | sort.Strings(result) |
| 46 | |
| 47 | return result |
| 48 | } |
| 49 | |
| 50 | // DefaultAlgorithm is the name of the default hash algorithm. |
| 51 | const DefaultAlgorithm = "BLAKE2B-256-128" |
no outgoing calls