Skip to content

Commit

Permalink
Add domainSep. check expand xof
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Jun 12, 2024
1 parent 465b0ca commit a607602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion group/edwards25519/point.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func expandMessageXMD(h hash.Hash, m []byte, domainSeparator string, byteLen int
}

func expandMessageXOF(h sha3.ShakeHash, m []byte, domainSeparator string, byteLen int) ([]byte, error) {
if byteLen > 65535 {
if byteLen > 65535 || len(domainSeparator) == 0 {
return nil, errors.New("invalid parameters")
}

Expand Down

0 comments on commit a607602

Please sign in to comment.