aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-15 23:03:03 +0000
committerlloyd <[email protected]>2010-03-15 23:03:03 +0000
commit72f13064111235cf29db17cafdf0546ba9094a19 (patch)
tree6add4fdcee4aebfadabf2d17026d5ad84b616126 /src
parentb24ef3859f8756202d99fe39bf372d099102ce17 (diff)
Name params
Diffstat (limited to 'src')
-rw-r--r--src/math/bigint/mp_core.h41
1 files changed, 25 insertions, 16 deletions
diff --git a/src/math/bigint/mp_core.h b/src/math/bigint/mp_core.h
index a2a89186d..0776d3147 100644
--- a/src/math/bigint/mp_core.h
+++ b/src/math/bigint/mp_core.h
@@ -22,14 +22,23 @@ extern "C" {
/*
* Addition/Subtraction Operations
*/
-void bigint_add2(word[], u32bit, const word[], u32bit);
-void bigint_add3(word[], const word[], u32bit, const word[], u32bit);
+void bigint_add2(word x[], u32bit x_size,
+ const word y[], u32bit y_size);
-word bigint_add2_nc(word[], u32bit, const word[], u32bit);
-word bigint_add3_nc(word[], const word[], u32bit, const word[], u32bit);
+void bigint_add3(word z[],
+ const word x[], u32bit x_size,
+ const word y[], u32bit y_size);
-void bigint_sub2(word[], u32bit, const word[], u32bit);
-void bigint_sub3(word[], const word[], u32bit, const word[], u32bit);
+word bigint_add2_nc(word x[], u32bit x_size, const word y[], u32bit y_size);
+
+word bigint_add3_nc(word z[],
+ const word x[], u32bit x_size,
+ const word y[], u32bit y_size);
+
+void bigint_sub2(word x[], u32bit x_size, const word y[], u32bit y_size);
+void bigint_sub3(word z[],
+ const word x[], u32bit x_size,
+ const word y[], u32bit y_size);
/*
* Shift Operations
@@ -70,16 +79,16 @@ void bigint_wordmul(word, word, word*, word*);
/*
* Comba Multiplication / Squaring
*/
-void bigint_comba_mul4(word[8], const word[4], const word[4]);
-void bigint_comba_mul6(word[12], const word[6], const word[6]);
-void bigint_comba_mul8(word[16], const word[8], const word[8]);
-void bigint_comba_mul16(word[32], const word[16], const word[16]);
-
-void bigint_comba_sqr4(word[8], const word[4]);
-void bigint_comba_sqr6(word[12], const word[6]);
-void bigint_comba_sqr8(word[16], const word[8]);
-void bigint_comba_sqr8(word[32], const word[16]);
-void bigint_comba_sqr16(word[64], const word[32]);
+void bigint_comba_mul4(word z[8], const word x[4], const word y[4]);
+void bigint_comba_mul6(word z[12], const word x[6], const word y[6]);
+void bigint_comba_mul8(word z[16], const word x[8], const word y[8]);
+void bigint_comba_mul16(word z[32], const word x[16], const word y[16]);
+
+void bigint_comba_sqr4(word out[8], const word in[4]);
+void bigint_comba_sqr6(word out[12], const word in[6]);
+void bigint_comba_sqr8(word out[16], const word in[8]);
+void bigint_comba_sqr8(word out[32], const word in[16]);
+void bigint_comba_sqr16(word out[64], const word in[32]);
}