AEPRAND it is...
This commit is contained in:
parent
c568a9820a
commit
ff0a0c46a7
@ -124,7 +124,7 @@ static int aep_mod_exp_dh(DH *dh, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
|
|||||||
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AEP_RAND
|
#ifdef AEPRAND
|
||||||
/* rand stuff */
|
/* rand stuff */
|
||||||
static int aep_rand(unsigned char *buf, int num);
|
static int aep_rand(unsigned char *buf, int num);
|
||||||
static int aep_rand_status(void);
|
static int aep_rand_status(void);
|
||||||
@ -190,7 +190,7 @@ static DH_METHOD aep_dh =
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AEP_RAND
|
#ifdef AEPRAND
|
||||||
/* our internal RAND_method that we provide pointers to */
|
/* our internal RAND_method that we provide pointers to */
|
||||||
static RAND_METHOD aep_random =
|
static RAND_METHOD aep_random =
|
||||||
{
|
{
|
||||||
@ -212,7 +212,7 @@ static ENGINE engine_aep =
|
|||||||
&aep_rsa,
|
&aep_rsa,
|
||||||
&aep_dsa,
|
&aep_dsa,
|
||||||
&aep_dh,
|
&aep_dh,
|
||||||
#ifdef AEP_RAND
|
#ifdef AEPRAND
|
||||||
&aep_random,
|
&aep_random,
|
||||||
#else
|
#else
|
||||||
NULL,
|
NULL,
|
||||||
@ -235,7 +235,7 @@ static AEP_CONNECTION_ENTRY aep_app_conn_table[MAX_PROCESS_CONNECTIONS];
|
|||||||
/*Used to determine if this is a new process*/
|
/*Used to determine if this is a new process*/
|
||||||
static pid_t recorded_pid = 0;
|
static pid_t recorded_pid = 0;
|
||||||
|
|
||||||
#ifdef AEP_RAND
|
#ifdef AEPRAND
|
||||||
static AEP_U8 rand_block[RAND_BLK_SIZE];
|
static AEP_U8 rand_block[RAND_BLK_SIZE];
|
||||||
static AEP_U32 rand_block_bytes = 0;
|
static AEP_U32 rand_block_bytes = 0;
|
||||||
#endif
|
#endif
|
||||||
@ -368,7 +368,7 @@ static int aep_init(void)
|
|||||||
|
|
||||||
if(!(p1 = (t_AEP_ModExp *) DSO_bind_func( aep_dso,AEP_F1)) ||
|
if(!(p1 = (t_AEP_ModExp *) DSO_bind_func( aep_dso,AEP_F1)) ||
|
||||||
!(p2 = (t_AEP_ModExpCrt*) DSO_bind_func( aep_dso,AEP_F2)) ||
|
!(p2 = (t_AEP_ModExpCrt*) DSO_bind_func( aep_dso,AEP_F2)) ||
|
||||||
#ifdef AEP_RAND
|
#ifdef AEPRAND
|
||||||
!(p3 = (t_AEP_GenRandom*) DSO_bind_func( aep_dso,AEP_F3)) ||
|
!(p3 = (t_AEP_GenRandom*) DSO_bind_func( aep_dso,AEP_F3)) ||
|
||||||
#endif
|
#endif
|
||||||
!(p4 = (t_AEP_Finalize*) DSO_bind_func( aep_dso,AEP_F4)) ||
|
!(p4 = (t_AEP_Finalize*) DSO_bind_func( aep_dso,AEP_F4)) ||
|
||||||
@ -604,7 +604,7 @@ static AEP_RV aep_mod_exp_crt(BIGNUM *r, const BIGNUM *a,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AEP_RAND
|
#ifdef AEPRAND
|
||||||
static int aep_rand(unsigned char *buf,int len )
|
static int aep_rand(unsigned char *buf,int len )
|
||||||
{
|
{
|
||||||
AEP_RV rv = AEP_R_OK;
|
AEP_RV rv = AEP_R_OK;
|
||||||
@ -825,7 +825,7 @@ static AEP_RV aep_get_connection(AEP_CONNECTION_HNDL_PTR phConnection)
|
|||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef AEP_RAND
|
#ifdef AEPRAND
|
||||||
/*Reset the rand byte count*/
|
/*Reset the rand byte count*/
|
||||||
rand_block_bytes = 0;
|
rand_block_bytes = 0;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user