diff --git a/src/galois.c b/src/galois.c index cd9faa8..8f7697c 100644 --- a/src/galois.c +++ b/src/galois.c @@ -304,6 +304,10 @@ void galois_w08_region_multiply(char *region, /* Region to multiply */ if (gfp_array[8] == NULL) { galois_init(8); } + if (r2 == NULL) { + r2 = region; + add = 0; + } gfp_array[8]->multiply_region.w32(gfp_array[8], region, r2, multby, nbytes, add); } @@ -316,6 +320,10 @@ void galois_w16_region_multiply(char *region, /* Region to multiply */ if (gfp_array[16] == NULL) { galois_init(16); } + if (r2 == NULL) { + r2 = region; + add = 0; + } gfp_array[16]->multiply_region.w32(gfp_array[16], region, r2, multby, nbytes, add); } @@ -329,6 +337,10 @@ void galois_w32_region_multiply(char *region, /* Region to multiply */ if (gfp_array[32] == NULL) { galois_init(32); } + if (r2 == NULL) { + r2 = region; + add = 0; + } gfp_array[32]->multiply_region.w32(gfp_array[32], region, r2, multby, nbytes, add); }