if (items >= 2) top=(int)SvIV(ST(0));
if (items >= 3) bottom=(int)SvIV(ST(1));
EXTEND(sp,1);
PUSHs(sv_newmortal());
ret=BN_new();
BN_rand(ret,bits,top,bottom);
if (items >= 2) top=(int)SvIV(ST(0));
if (items >= 3) bottom=(int)SvIV(ST(1));
EXTEND(sp,1);
PUSHs(sv_newmortal());
ret=BN_new();
BN_rand(ret,bits,top,bottom);
- sv_setref_pv(ST(0), "SSLeay::BN", (void*)div);
- sv_setref_pv(ST(1), "SSLeay::BN", (void*)mod);
+ sv_setref_pv(ST(0), "OpenSSL::BN", (void*)div);
+ sv_setref_pv(ST(1), "OpenSSL::BN", (void*)mod);
BN_mod_mul(ret,a,b,c,ctx);
void
BN_mod_mul(ret,a,b,c,ctx);
void
BN_mod_exp(ret,a,b,c,ctx);
void
BN_mod_exp(ret,a,b,c,ctx);
void
- croak("Usage: SSLeay::BN::generate_prime(a[,strong][,callback][,cb_arg]");
+ croak("Usage: OpenSSL::BN::generate_prime(a[,strong][,callback][,cb_arg]");
if (items >= 1) bits=(int)SvIV(ST(0));
if (items >= 2) strong=(int)SvIV(ST(1));
if (items >= 3) callback=ST(2);
if (items == 4) cb_arg=ST(3);
if (callback == NULL)
if (items >= 1) bits=(int)SvIV(ST(0));
if (items >= 2) strong=(int)SvIV(ST(1));
if (items >= 3) callback=ST(2);
if (items == 4) cb_arg=ST(3);
if (callback == NULL)
- ret=BN_generate_prime(bits,strong,NULL,NULL,NULL,NULL);
+ ret=BN_generate_prime(ret,bits,strong,NULL,NULL,NULL,NULL);
- ret=BN_generate_prime(bits,strong,NULL,NULL,
+ ret=BN_generate_prime(ret,bits,strong,NULL,NULL,
- croak("Usage: SSLeay::BN::is_prime(a[,ncheck][,callback][,callback_arg]");
+ croak("Usage: OpenSSL::BN::is_prime(a[,ncheck][,callback][,callback_arg]");
if (ctx == NULL) ctx=BN_CTX_new();
if (items >= 2) nchecks=(int)SvIV(ST(1));
if (items >= 3) callback=ST(2);
if (ctx == NULL) ctx=BN_CTX_new();
if (items >= 2) nchecks=(int)SvIV(ST(1));
if (items >= 3) callback=ST(2);