On Thu, Jan 08, 2004 at 09:02:12PM -0800, [EMAIL PROTECTED] wrote:
> Hi,
> 
> I am using crypto library to do some calculations. I need to calculate the sqare
> root of a 1024 bit number and round it to nearest integer.

this might mean working over just integers, isnt it?

> The BN_mod_sqrt()
> function would only calculate the sqare root if the input BigNum passed to it
> is a perfect square.

it calculates squares in the ring of integers modulo prime number
and this makes the real difference. No rounding exists there

regards,
Vadim

> Is the any easy work around to do this ??
> 
> Thanks,
> Aneel.
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to