Hi all...
Does it take long time to compute BN_exp()?
====================================================================
#include <stdio.h>
#include <openssl/bn.h>
int main()
{
BIGNUM *a,*b,*c;
BN_CTX *bnctx;
bnctx=BN_CTX_new();
a=BN_new();
b=BN_new();
c=BN_new();
BN_rand(a,20,0,0);
printf("\nNUM A : ");
BN_print_fp(stdout,a);
BN_rand(b,20,0,0);
printf("\nNUM B : ");
BN_print_fp(stdout,b);
BN_exp(c,a,b,bnctx);
printf("\nNUM C : ");
BN_print_fp(stdout,c);
BN_free(a);
BN_free(b);
BN_free(c);
BN_CTX_free(bnctx);
}
=====================================================
My Sun workstation halts at line BN_exp(c, a, b, bnctx) for over 20 minutes.
What's the problem? Plz, help...
Regrads,
Sangkeun.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]