summaryrefslogtreecommitdiffstats
path: root/lib/hash.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hash.go')
-rw-r--r--lib/hash.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hash.go b/lib/hash.go
index 8c8aeef..b636e17 100644
--- a/lib/hash.go
+++ b/lib/hash.go
@@ -21,3 +21,8 @@ func shaRotr(x uint32, n uint) uint32 {
func shaRotl(x uint32, n uint) uint32 {
return (x << n) | (x >> (32 - n))
}
+
+// Right Shift
+func shaShr(x uint32, n uint) uint32 {
+ return x >> n
+}