]>
git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/CurveParamDocs/tools.h
1 /**************************************************************
5 * Header file for tools.c.
8 * 30 Apr 99 REC Modified init_tools type to void.
9 * 3 Apr 98 REC Creation
12 * c. 1998 Perfectly Scientific, Inc.
13 * All Rights Reserved.
16 *************************************************************/
18 #define NUM_PRIMES 6542 /* PrimePi[2^16]. */
19 #define MILLER_RABIN_DEPTH (8)
22 init_tools(int shorts
);
41 prime_probable(giant p
);
44 jacobi_symbol(giant a
, giant n
);
47 pseudoq(giant a
, giant p
);
50 pseudointq(int a
, giant p
);
54 powFp2(giant a
, giant b
, giant w2
, giant n
, giant p
);
57 sqrtmod(giant p
, giant x
);
63 cornacchia4(giant n
, int d
, giant u
, giant v
);