forked from libtom/libtommath
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
159 changed files
with
1,588 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ | |
\begin{document} | ||
\frontmatter | ||
\pagestyle{empty} | ||
\title{LibTomMath User Manual \\ v0.35} | ||
\title{LibTomMath User Manual \\ v0.36} | ||
\author{Tom St Denis \\ [email protected]} | ||
\maketitle | ||
This text, the library and the accompanying textbook are all hereby placed in the public domain. This book has been | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,7 @@ char *mp_error_to_string(int code) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,3 +42,7 @@ mp_2expt (mp_int * a, int b) | |
return MP_OKAY; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,7 @@ mp_abs (mp_int * a, mp_int * b) | |
return MP_OKAY; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,7 @@ int mp_add (mp_int * a, mp_int * b, mp_int * c) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,7 @@ mp_add_d (mp_int * a, mp_digit b, mp_int * c) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,7 @@ mp_clamp (mp_int * a) | |
} | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,7 @@ mp_clear (mp_int * a) | |
} | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,7 @@ void mp_clear_multi(mp_int *mp, ...) | |
va_end(args); | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,7 @@ mp_cmp (mp_int * a, mp_int * b) | |
} | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,7 @@ int mp_cmp_d(mp_int * a, mp_digit b) | |
} | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,7 @@ int mp_cmp_mag (mp_int * a, mp_int * b) | |
return MP_EQ; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,7 @@ int mp_cnt_lsb(mp_int *a) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,7 @@ mp_copy (mp_int * a, mp_int * b) | |
return MP_OKAY; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,7 @@ mp_count_bits (mp_int * a) | |
return r; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -286,3 +286,7 @@ LBL_Q:mp_clear (&q); | |
#endif | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,7 @@ int mp_div_2(mp_int * a, mp_int * b) | |
return MP_OKAY; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,7 @@ mp_div_3 (mp_int * a, mp_int *c, mp_digit * d) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,7 @@ int mp_dr_is_modulus(mp_int *a) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,7 @@ void mp_dr_setup(mp_int *a, mp_digit *d) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,7 @@ mp_exch (mp_int * a, mp_int * b) | |
*b = t; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -315,3 +315,7 @@ LBL_RES:mp_clear (&res); | |
} | ||
#endif | ||
|
||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,7 @@ int mp_fread(mp_int *a, int radix, FILE *stream) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,7 @@ int mp_fwrite(mp_int *a, int radix, FILE *stream) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,3 +107,7 @@ LBL_U:mp_clear (&v); | |
return res; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,3 +51,7 @@ int mp_grow (mp_int * a, int size) | |
return MP_OKAY; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,7 @@ int mp_init (mp_int * a) | |
return MP_OKAY; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,7 @@ int mp_init_multi(mp_int *mp, ...) | |
} | ||
|
||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,7 @@ int mp_init_set (mp_int * a, mp_digit b) | |
return err; | ||
} | ||
#endif | ||
|
||
/* $Source$ */ | ||
/* $Revision$ */ | ||
/* $Date$ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.