We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb24910 commit f61a3d2Copy full SHA for f61a3d2
scram.nimble
@@ -1,4 +1,4 @@
1
-version = "0.2.0"
+version = "0.2.1"
2
author = "Huy Doan"
3
description = "Salted Challenge Response Authentication Mechanism (SCRAM) "
4
license = "MIT"
scram/private/utils.nim
@@ -48,7 +48,7 @@ template makeNonce*(): string =
48
49
template `^=`*[T](a, b: T) =
50
for x in 0..<a.len:
51
- when T is Sha1Digest or T is Keccak512Digest or T is SHA256Digest:
+ when a[0].type is uint8:
52
a[x] = (a[x].int32 xor b[x].int32).uint8
53
else:
54
a[x] = (a[x].int32 xor b[x].int32).char
0 commit comments