Fix hmac seq[bytes] -> string conversion

This commit is contained in:
mratsim 2018-03-15 12:18:10 +01:00
parent 0a20775035
commit 36fe3e56b4
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ proc hmac_sha256*[N: static[int]](key: array[N, byte|char],
# TODO Continuous integration
# inner pass
result = computeSHA256($cast[array[blockSize,char]](k_ipad) & data)
result = computeSHA256($cast[array[blockSize,char]](k_ipad) & cast[string](data))
# outer pass
result = computeSHA256($cast[array[blockSize,char]](k_opad) & $result)