From 4ab24cc86ff39540e152770edb7d3cee1ed4f214 Mon Sep 17 00:00:00 2001 From: garyschulte Date: Thu, 19 Dec 2024 19:04:35 -0800 Subject: [PATCH] ensure we set output length for low pair count MSM (#231) Signed-off-by: garyschulte --- .../org/hyperledger/besu/nativelib/gnark/LibGnarkEIP2537.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnark/src/main/java/org/hyperledger/besu/nativelib/gnark/LibGnarkEIP2537.java b/gnark/src/main/java/org/hyperledger/besu/nativelib/gnark/LibGnarkEIP2537.java index 4ea6c489..c55f8b6c 100644 --- a/gnark/src/main/java/org/hyperledger/besu/nativelib/gnark/LibGnarkEIP2537.java +++ b/gnark/src/main/java/org/hyperledger/besu/nativelib/gnark/LibGnarkEIP2537.java @@ -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, @@ -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,