summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth <s@ricketyspace.net>2022-03-05 13:04:05 -0500
committersiddharth <s@ricketyspace.net>2022-03-05 13:04:05 -0500
commit6083b20d26a1d69da6be92de146da22062fd6f53 (patch)
tree919baf180bb2b1637718eda08c9732de9aecad08
parenta43f1d60b697bf4e6d96f77e24ba8095dc1bd42a (diff)
lib: sha1MessageBlocks -> shaMessageBlocks
-rw-r--r--lib/sha1.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sha1.go b/lib/sha1.go
index 2866bdd..9a9d6df 100644
--- a/lib/sha1.go
+++ b/lib/sha1.go
@@ -55,7 +55,7 @@ func sha1KT(t int) uint32 {
// Converts padded messages bytes `pm` into 512-bit message blocks.
// Each 512-bit block is an array of 16 32-bit words.
-func sha1MessageBlocks(pm []byte) [][]uint32 {
+func shaMessageBlocks(pm []byte) [][]uint32 {
// Break into 512-bit blocks
bs := BreakIntoBlocks(pm, 64)
@@ -170,7 +170,7 @@ func (s *Sha1) Hash() []byte {
pm := s.Pad()
// Break into message blocks.
- mbs := sha1MessageBlocks(pm)
+ mbs := shaMessageBlocks(pm)
// Initialize hash values.
h := make([]uint32, 5)