aboutsummaryrefslogtreecommitdiffstats
path: root/vala/sha3sum.vala
diff options
context:
space:
mode:
Diffstat (limited to 'vala/sha3sum.vala')
-rw-r--r--vala/sha3sum.vala3
1 files changed, 3 insertions, 0 deletions
diff --git a/vala/sha3sum.vala b/vala/sha3sum.vala
index da2e2b7..6339d6a 100644
--- a/vala/sha3sum.vala
+++ b/vala/sha3sum.vala
@@ -602,6 +602,9 @@ class SHA3 : Object
if (olen > 0)
this.keccakF(S);
}
+ if ((n & 7) != 0)
+ rc[n >> 3] &= (1 << (n & 7)) - 1;
+
return rc;
}