Re: strange behaviour of clock() with DH_generate_key

2007-12-05 Thread Koza
Koza wrote: > > I try to measure time of generating a key for DH. I have a code alike: > startclk = clock(); > for (i=0;i DH_generate_key(a); > stopclk = clock(); > I know the anser now, it was my fault since not DH_generate_key takes a long time but DH_generate

strange behaviour of clock() with DH_generate_key

2007-12-02 Thread Koza
Hi, I try to measure time of generating a key for DH. I have a code alike: startclk = clock(); for (i=0;iflags &= ~DH_FLAG_NO_EXP_CONSTTIME; //b->flags |= DH_FLAG_NO_EXP_CONSTTIME; but I commented them out but the result is the same. Thank you for your help in advance!! B