summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2021-10-11 11:04:44 -0400
committersiddharth <s@ricketyspace.net>2021-10-11 11:04:44 -0400
commit82b2b7152bdd0e1a8d064f72eaf700344305c3cf (patch)
tree35b4a9845fca4a9dbf24199998e2048692c81d59
parent0325d6f982eeb13a66dedff9d3065f3748f6311e (diff)
lib: md4Padding -> Md4Padding
-rw-r--r--lib/md4.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/md4.go b/lib/md4.go
index a1bebc1..632f6da 100644
--- a/lib/md4.go
+++ b/lib/md4.go
@@ -53,7 +53,7 @@ func md4RoundThreeFunc(a, b, c, d, x uint32, s uint) uint32 {
return a
}
-func md4Padding(l int) []byte {
+func Md4Padding(l int) []byte {
l = l * 8 // msg size in bits
// Reckon value of `k`
@@ -139,7 +139,7 @@ func (md *Md4) Pad() []byte {
copy(pm, md.Msg)
// Add padding.
- pm = append(pm, md4Padding(md.MsgLen)...)
+ pm = append(pm, Md4Padding(md.MsgLen)...)
return pm
}