We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a15ca46 commit c8845f6Copy full SHA for c8845f6
src/main/java/de/rub/nds/modifiablevariable/util/ArrayConverter.java
@@ -276,6 +276,10 @@ public static void makeArrayNonZero(final byte[] array) {
276
* @return big integer represented in bytes, padded to a specific block size
277
*/
278
public static byte[] bigIntegerToByteArray(BigInteger value, int blockSize, boolean removeSignByte) {
279
+ if(blockSize == 0)
280
+ {
281
+ return new byte[0];
282
+ }
283
byte[] array = value.toByteArray();
284
int remainder = array.length % blockSize;
285
byte[] result = array;
0 commit comments