Fix hmac seq[bytes] -> string conversion
This commit is contained in:
parent
0a20775035
commit
36fe3e56b4
|
@ -43,7 +43,7 @@ proc hmac_sha256*[N: static[int]](key: array[N, byte|char],
|
||||||
# TODO Continuous integration
|
# TODO Continuous integration
|
||||||
|
|
||||||
# inner pass
|
# inner pass
|
||||||
result = computeSHA256($cast[array[blockSize,char]](k_ipad) & data)
|
result = computeSHA256($cast[array[blockSize,char]](k_ipad) & cast[string](data))
|
||||||
# outer pass
|
# outer pass
|
||||||
result = computeSHA256($cast[array[blockSize,char]](k_opad) & $result)
|
result = computeSHA256($cast[array[blockSize,char]](k_opad) & $result)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue