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.
2 parents 41584ec + 4fba8b8 commit ae3006aCopy full SHA for ae3006a
scram/private/utils.nim
@@ -15,7 +15,7 @@ template makeNonce*(): string =
15
16
template `^=`*[T](a, b: T) =
17
for x in 0..<a.len:
18
- when T is Sha1Digest or T is Keccak512Digest:
+ when T is Sha1Digest or T is Keccak512Digest or T is SHA256Digest:
19
a[x] = (a[x].int32 xor b[x].int32).uint8
20
else:
21
a[x] = (a[x].int32 xor b[x].int32).char
0 commit comments