00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef _MP32PRIME_H
00029 #define _MP32PRIME_H
00030
00031 #include "mp32barrett.h"
00032
00033 #define SMALL_PRIMES_PRODUCT_MAX 64
00034
00037
00038 extern uint32* mp32spprod[SMALL_PRIMES_PRODUCT_MAX];
00039
00040
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044
00047 BEECRYPTAPI
00048 int mp32ptrials (uint32 bits)
00049 ;
00050
00053 BEECRYPTAPI
00054 int mp32pmilrab_w (const mp32barrett* p, randomGeneratorContext* rc, int t, uint32* wksp)
00055 ;
00056
00059 BEECRYPTAPI
00060 void mp32prnd_w (mp32barrett* p, randomGeneratorContext* rc, uint32 size, int t, const mp32number* f, uint32* wksp)
00061
00062 ;
00063
00066 BEECRYPTAPI
00067 void mp32prndsafe_w (mp32barrett* p, randomGeneratorContext* rc, uint32 size, int t, uint32* wksp)
00068
00069 ;
00070
00071 #ifdef NOTYET
00072
00074 BEECRYPTAPI
00075 void mp32prndcon_w (mp32barrett* p, randomGeneratorContext* rc, uint32, int, const mp32number*, const mp32number*, const mp32number*, mp32number*, uint32* wksp)
00076 ;
00077 #endif
00078
00081 BEECRYPTAPI
00082 void mp32prndconone_w(mp32barrett* p, randomGeneratorContext* rc, uint32 size, int t, const mp32barrett* q, const mp32number* f, mp32number* r, int cofactor, uint32* wksp)
00083
00084 ;
00085
00086 #ifdef __cplusplus
00087 }
00088 #endif
00089
00090 #endif