Skip to content

Commit

Permalink
Start reducing duplication in hasher code.
Browse files Browse the repository at this point in the history
The C version defined several related hasher types with preprocessor
tricks, but I split them up for the translation to Go. Now I'm
recombining them.
  • Loading branch information
andybalholm committed Mar 9, 2019
1 parent 74ae18c commit c4f1bfa
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 679 deletions.
203 changes: 0 additions & 203 deletions h3.go

This file was deleted.

2 changes: 1 addition & 1 deletion h35.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (h *H35) Prepare(one_shot bool, input_size uint, data []byte) {
var common_a *HasherCommon
var common_b *HasherCommon

h.ha = new(H3)
h.ha = newHasher(3)
common_a = h.ha.Common()
common_a.params = h.params.hasher
common_a.is_prepared_ = false
Expand Down
Loading

0 comments on commit c4f1bfa

Please sign in to comment.