Skip to content

Commit

Permalink
fix: pk length check on coreAggregateVerify
Browse files Browse the repository at this point in the history
  • Loading branch information
chuwt authored Jan 18, 2024
1 parent f0bd081 commit b26ae1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aug_scheme_mpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func coreAggregateMpl(signatures ...[]byte) ([]byte, error) {
func coreAggregateVerify(pks, messages [][]byte, sig, dst []byte) bool {
pksLen := len(pks)

if pksLen != len(messages) && pksLen < 1 {
if pksLen != len(messages) || pksLen == 0 {
return false
}

Expand Down

0 comments on commit b26ae1d

Please sign in to comment.