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
129 changed files
with
939 additions
and
4,536 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.40} | ||
\title{LibTomMath User Manual \\ v0.41} | ||
\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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
static const struct { | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* computes the modular inverse via binary extended euclidean algorithm, | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* computes xR**-1 == x (mod N) via Montgomery Reduction | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* Fast (comba) multiplier | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* this is a modified version of fast_s_mul_digs that only produces | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* the jist of squaring... | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* computes a = 2**b | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* b = |a| | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* high level addition (handles signs) */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* single digit addition */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* d = a + b (mod c) */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* AND two ints together */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* trim unused digits | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* clear one (frees) */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
#include <stdarg.h> | ||
|
||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* compare two ints (signed)*/ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* compare a digit */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* compare maginitude of two ints (unsigned) */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
static const int lnz[16] = { | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* copy, b = a */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* returns the number of bits in an int */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
#ifdef BN_MP_DIV_SMALL | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* b = a/2 */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* shift right by a certain bit count (store quotient in c, optional remainder in d) */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* divide by three (based on routine from MPI and the GMP manual) */ | ||
|
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 |
---|---|---|
|
@@ -12,14 +12,19 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
static int s_is_power_of_two(mp_digit b, int *p) | ||
{ | ||
int x; | ||
|
||
for (x = 1; x < DIGIT_BIT; x++) { | ||
/* fast return if no power of two */ | ||
if ((b==0) || (b & (b-1))) { | ||
return 0; | ||
} | ||
|
||
for (x = 0; x < DIGIT_BIT; x++) { | ||
if (b == (((mp_digit)1)<<x)) { | ||
*p = x; | ||
return 1; | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* determines if a number is a valid DR modulus */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* reduce "x" in place modulo "n" using the Diminished Radix algorithm. | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* determines the setup value */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* swap the elements of two integers, for cases where you can't simply swap the | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* calculate c = a**b using a square-multiply algorithm */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* computes Y == G**X mod P, HAC pp.616, Algorithm 14.85 | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* Extended euclidean algorithm of (a, b) produces | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* read a bigint from a file stream in ASCII */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
int mp_fwrite(mp_int *a, int radix, FILE *stream) | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* Greatest Common Divisor using the binary method */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* get the lower 32-bits of an mp_int */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* grow as required */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* init a new mp_int */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
|
||
/* creates "a" then copies b into it */ | ||
|
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
* The library is free for all purposes without any express | ||
* guarantee it works. | ||
* | ||
* Tom St Denis, [email protected], http://math.libtomcrypt.com | ||
* Tom St Denis, [email protected], http://libtom.org | ||
*/ | ||
#include <stdarg.h> | ||
|
||
|
Oops, something went wrong.