Skip to content

Commit

Permalink
ensure we set output length for low pair count MSM (#231)
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <garyschulte@gmail.com>
  • Loading branch information
garyschulte authored Dec 20, 2024
1 parent 8539991 commit 4ab24cc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public static int eip2537_perform_operation(
ret = eip2537blsG1MultiExpParallel(i, output, err, i_len,
EIP2537_PREALLOCATE_FOR_RESULT_BYTES, EIP2537_PREALLOCATE_FOR_ERROR_BYTES,
degreeOfMSMParallelism);
o_len.setValue(128);
}
o_len.setValue(128);
break;
case BLS12_G2ADD_OPERATION_SHIM_VALUE:
ret = eip2537blsG2Add(i, output, err, i_len,
Expand All @@ -97,8 +97,8 @@ public static int eip2537_perform_operation(
ret = eip2537blsG2MultiExpParallel(i, output, err, i_len,
EIP2537_PREALLOCATE_FOR_RESULT_BYTES, EIP2537_PREALLOCATE_FOR_ERROR_BYTES,
degreeOfMSMParallelism);
o_len.setValue(256);
}
o_len.setValue(256);
break;
case BLS12_PAIR_OPERATION_SHIM_VALUE:
ret = eip2537blsPairing(i, output, err, i_len,
Expand Down

0 comments on commit 4ab24cc

Please sign in to comment.