BeeCrypt 4.2.1
mpprime.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2003 Bob Deblier
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 */
19
26#ifndef _MPPRIME_H
27#define _MPPRIME_H
28
29#include "beecrypt/mpbarrett.h"
30
31#define SMALL_PRIMES_PRODUCT_MAX 32
32
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
40int mpptrials (size_t);
43
45int mpprnd_w (mpbarrett*, randomGeneratorContext*, size_t, int, const mpnumber*, mpw*);
47int mpprndr_w (mpbarrett*, randomGeneratorContext*, size_t, int, const mpnumber*, const mpnumber*, const mpnumber*, mpw*);
51void mpprndcon_w (mpbarrett*, randomGeneratorContext*, size_t, int, const mpnumber*, const mpnumber*, const mpnumber*, mpnumber*, mpw*);
53void mpprndconone_w(mpbarrett*, randomGeneratorContext*, size_t, int, const mpbarrett*, const mpnumber*, mpnumber*, int, mpw*);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif
#define BEECRYPTAPI
Definition: api.h:52
uint32_t mpw
Definition: api.h:94
Multi-precision integer routines using Barrett modular reduction, headers.
mpw * mpspprod[SMALL_PRIMES_PRODUCT_MAX]
void mpprndsafe_w(mpbarrett *, randomGeneratorContext *, size_t, int, mpw *)
int mpptrials(size_t)
int mpprnd_w(mpbarrett *, randomGeneratorContext *, size_t, int, const mpnumber *, mpw *)
#define SMALL_PRIMES_PRODUCT_MAX
Definition: mpprime.h:31
void mpprndconone_w(mpbarrett *, randomGeneratorContext *, size_t, int, const mpbarrett *, const mpnumber *, mpnumber *, int, mpw *)
int mpprndr_w(mpbarrett *, randomGeneratorContext *, size_t, int, const mpnumber *, const mpnumber *, const mpnumber *, mpw *)
int mppmilrab_w(const mpbarrett *, randomGeneratorContext *, int, mpw *)
void mpprndcon_w(mpbarrett *, randomGeneratorContext *, size_t, int, const mpnumber *, const mpnumber *, const mpnumber *, mpnumber *, mpw *)
Definition: mpbarrett.h:41
Definition: mpnumber.h:40
Definition: beecrypt.h:239