@@ -79,6 +79,24 @@ Frees the heap memory of \fBa\fP.
79
79
Returns the position of the lowest bit set.
80
80
.in -1i
81
81
82
+ .LP
83
+ .BI " mp_ord mp_cmp(const mp_int *" a " , const mp_int *" b " )"
84
+ .in 1i
85
+ Compare \fB a \fP to \fB b \fP .
86
+ .in -1i
87
+
88
+ .LP
89
+ .BI " mp_ord mp_cmp_d(const mp_int *" a " , mp_digit " b " )"
90
+ .in 1i
91
+ Compare \fB a \fP to a single digit \fB b \fP .
92
+ .in -1i
93
+
94
+ .LP
95
+ .BI " mp_ord mp_cmp_mag(const mp_int *" a " , const mp_int *" b " )"
96
+ .in 1i
97
+ Compares the absolute values of \fB a \fP and \fB b \fP .
98
+ .in -1i
99
+
82
100
.LP
83
101
.BI " mp_err mp_complement(const mp_int *" a " , mp_int *" b " )"
84
102
.in 1i
@@ -279,6 +297,7 @@ mp_get_i64;5543444065158278130
279
297
mp_get_mag_u32;3221335026
280
298
mp_get_mag_u64;5543444065158278130
281
299
mp_get_l;5543444065158278130
300
+ mp_get_ul;5543444065158278130
282
301
mp_get_mag_ul;5543444065158278130
283
302
.TE
284
303
.in -1i
@@ -315,6 +334,14 @@ Returns an unsigned 64 bit integer from big-integer \fBa\fP.
315
334
\fB NOTE: \fP This function is truncating. See \fB mp_get_i32 \fP for details.
316
335
.in -1i
317
336
337
+ .LP
338
+ .BI " unsigned long mp_get_mag_ul (const mp_int *" a " )"
339
+ .in 1i
340
+ Returns an unsigned long from big-integer \fB a \fP .
341
+ .br
342
+ \fB NOTE: \fP This function is truncating. See \fB mp_get_i32 \fP for details.
343
+ .in -1i
344
+
318
345
.LP
319
346
.BI " uint32_t mp_get_u32 (const mp_int *" a " )"
320
347
.in 1i
@@ -327,6 +354,12 @@ Convenience macro for \fBmp_get_mag_u32()\fP.
327
354
Convenience macro for \fB mp_get_mag_u64() \fP .
328
355
.in -1i
329
356
357
+ .LP
358
+ .BI " unsigned long mp_get_ul (const mp_int *" a " )"
359
+ .in 1i
360
+ Convenience macro for \fB mp_get_mag_ul() \fP .
361
+ .in -1i
362
+
330
363
.LP
331
364
.BI " mp_err mp_grow (mp_int *" a " , int " size " )"
332
365
.in 1i
@@ -717,6 +750,14 @@ typedef enum {
717
750
.in -1.5i
718
751
.in -1i
719
752
753
+ .LP
754
+ .BI " mp_err mp_prime_fermat(const mp_int *" a " , const mp_int *" b " , bool *" result " )"
755
+ .in 1i
756
+ Performs one Fermat test of \fB a \fP using base \fB b \fP .
757
+ .br
758
+ Sets \fB result \fP to \fB true \fP if \fB a \fP is probably prime, \fB false \fP if composite.
759
+ .in -1i
760
+
720
761
.LP
721
762
.BI " mp_err mp_prime_strong_lucas_selfridge(const mp_int *" a " , bool *" result " )"
722
763
.in 1i
0 commit comments