cryptographically secure?

delta trinity deltatrinity at
Fri Sep 17 16:03:39 CEST 2004

Well, to be cryptographically secure, you need a *really* random input seed.

Any seed that is not random, as for many of the ones based on the system 
clock, is not secure.  Take for example, an algorithm that take the time to 
the milli-second of the system, and feed it to the random seed.  Then an 
attacker, even knowing a very vague plage of time where you could have run 
the algorithm, can deduct a plage of time period and try brute-force attack.

I don't know the distribution of GMP random function, but for it to by 
cryptographically secure, it must give an uniform distribution of it's 
output, depending of it's input seed.

A way to generate really random input seed, used in many crypto programs, is 
based on the mouse input.  Basically, you get a window, for which you must 
hoover over it for a few seconds.  The program take the X and Y values and 
derive a random sequence (possibly looking only at the lowest bit of the X 
and Y values, and making a check to ensure that there isn't too many zeros 
or ones).

>From: malik.hammoutene at
>To: DTAshley at, gmp-discuss at
>Subject: Re: cryptographically secure?
>Date: Thu, 16 Sep 2004 15:49:31 +0200
>Thank you for your answer.
>What I want to know by saying "cryptographically secure", is not if one can
>easily determine the seed from samples or not. The question is: EVEN if the 
>is "cryptographically secure", are the random functions of GMP
>"cryptographically secure"? Is it possible for anybody to determine the
>algorithm from samples?
>It's the difference between cryptographic and algorithmic...
>Best regards,
>PS: sorry for my english ;o)
> > The usual notion of cryptographic security in the case of something that 
> > a seed value and generates a new value, updating the seed, is that from 
> > certain number of samples, one can't easily determine the seed (and of
> > course, once the seed is determined, all future random numbers are 
> > generated).
> >
> > It is usually a question of whether one has a computationally tractable 
> > to predict future random numbers from a sequence of past random numbers.
> >
> > I do not see any particular reason that the GMP random number functions 
> > be secure in that sense.
> >
> > Also, please define "cryptologically secure".  This is very ambiguous.
> >
> > Dave.
> >
> > In a message dated 9/16/2004 4:21:44 AM Eastern Daylight Time,
> > malik.hammoutene at writes:
> >
> > >
> > >Good morning,
> > >
> > >I'm developping some cryptographic protocol and I'm using GMP. My 
> > is to
> > >know if the random functions of GMP are cryptographically secure. 
> > is
> > >said in the documentation.
> > >
> > >I hope having an answer,
> > >
> > >Best Regards,
> > >
> > >M. Hammoutène,
> > >
> > >_______________________________________________
> > >gmp-discuss mailing list
> > >gmp-discuss at
> > >
> > >
> >
>gmp-discuss mailing list
>gmp-discuss at

Express yourself instantly with MSN Messenger! Download today - it's FREE!

More information about the gmp-discuss mailing list