diff --git a/abe/cpabe/tkn20/internal/tkn/util.go b/abe/cpabe/tkn20/internal/tkn/util.go index 69a31f18..9afbe88a 100644 --- a/abe/cpabe/tkn20/internal/tkn/util.go +++ b/abe/cpabe/tkn20/internal/tkn/util.go @@ -30,7 +30,6 @@ func HashStringToScalar(key []byte, value string) *pairing.Scalar { if err != nil { return nil } - xof.Reset() _, err = xof.Write([]byte(value)) if err != nil { return nil diff --git a/expander/expander.go b/expander/expander.go index f51c2af6..655a216c 100644 --- a/expander/expander.go +++ b/expander/expander.go @@ -54,7 +54,6 @@ func (e *expanderMD) Expand(in []byte, n uint) []byte { libStr[1] = byte(n & 0xFF) dstPrime := e.calcDSTPrime() - H.Reset() mustWrite(H, zPad) mustWrite(H, in) mustWrite(H, libStr)