This commit is contained in:
Miek Gieben 2014-06-14 12:48:44 +01:00
parent 05cfaca9f0
commit 09c28d4a95
1 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,8 @@ type saltWireFmt struct {
Salt string `dns:"size-hex"`
}
// HashName hashes a string (label) according to RFC 5155. It returns the hashed string.
// HashName hashes a string (label) according to RFC 5155. It returns the hashed string in
// uppercase.
func HashName(label string, ha uint8, iter uint16, salt string) string {
saltwire := new(saltWireFmt)
saltwire.Salt = salt