Skip to content

Commit f61a3d2

Browse files
committed
compatible fix for 1.6.14
1 parent fb24910 commit f61a3d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scram.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "0.2.0"
1+
version = "0.2.1"
22
author = "Huy Doan"
33
description = "Salted Challenge Response Authentication Mechanism (SCRAM) "
44
license = "MIT"

scram/private/utils.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ template makeNonce*(): string =
4848

4949
template `^=`*[T](a, b: T) =
5050
for x in 0..<a.len:
51-
when T is Sha1Digest or T is Keccak512Digest or T is SHA256Digest:
51+
when a[0].type is uint8:
5252
a[x] = (a[x].int32 xor b[x].int32).uint8
5353
else:
5454
a[x] = (a[x].int32 xor b[x].int32).char

0 commit comments

Comments
 (0)