summaryrefslogtreecommitdiffstats
path: root/lib/sha1.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sha1.go')
-rw-r--r--lib/sha1.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sha1.go b/lib/sha1.go
index 3596160..f90bc53 100644
--- a/lib/sha1.go
+++ b/lib/sha1.go
@@ -207,3 +207,8 @@ func Sha1(m []byte) []byte {
return d
}
+
+func Sha1Mac(secret, msg []byte) []byte {
+ return Sha1(append(secret, msg...))
+}
+