Home | History | Annotate | Download | only in factor

Lines Matching defs:BIGNUM

94 static void	pollard_pminus1(BIGNUM *, int, int);
98 typedef long BIGNUM;
103 #define BN_new() calloc(sizeof(BIGNUM), 1)
112 static BIGNUM *BN_dup(const BIGNUM *);
113 static int BN_dec2bn(BIGNUM **, const char *);
114 static int BN_hex2bn(BIGNUM **, const char *);
115 static BN_ULONG BN_div_word(BIGNUM *, BN_ULONG);
116 static void BN_print_fp(FILE *, const BIGNUM *);
120 static void BN_print_dec_fp(FILE *, const BIGNUM *);
121 static void convert_str2bn(BIGNUM **, char *);
122 static void pr_fact(BIGNUM *, int, int); /* print factors of a value */
123 static void pr_print(BIGNUM *, int, int); /* print a prime */
131 BIGNUM *val;
139 errx(1, "can't initialise bignum");
206 pr_fact(BIGNUM *val, int hflag, int xflag)
238 BIGNUM *bnfact;
278 pr_print(BIGNUM *val, int hflag, int xflag)
280 static BIGNUM *sval;
282 BIGNUM *pval;
334 pollard_pminus1(BIGNUM *val, int hflag, int xflag)
336 BIGNUM *base, *rbase, *num, *i, *x;
388 BN_print_dec_fp(FILE *fp, const BIGNUM *num)
402 BN_print_fp(FILE *fp, const BIGNUM *num)
408 BN_print_dec_fp(FILE *fp, const BIGNUM *num)
414 BN_dec2bn(BIGNUM **a, const char *str)
424 BN_hex2bn(BIGNUM **a, const char *str)
434 BN_div_word(BIGNUM *a, BN_ULONG b)
443 static BIGNUM *
444 BN_dup(const BIGNUM *a)
446 BIGNUM *b = BN_new();
453 /* Convert string pointed to by *str to a bignum. */
455 convert_str2bn(BIGNUM **val, char *p)