Re: How To Handle Huge Numbers In 2048 Bit RSA

From: W. Othman (rainwolf8472_at_hotmail.com)
Date: 10/24/03


Date: Fri, 24 Oct 2003 13:29:45 +0200

Here are some libs to do just that in FreePascal (http://www.freepascal.org)
and in delphi 4 and higher, the source is public.

http://triade.studentenweb.org/
take a look at the FGInt-section.

regards,
wal

"Johan van der Galien" <galien8@zonnet.nl> wrote in message
news:b5368c00.0310231122.277aa1cc@posting.google.com...
> I wonder how they handle the huge numbers in RSA programs written in
> C, PASCAL and DELPHI?
>
> To my knowledge the numbers of 2048 bit RSA encryption involve the
> calculation:
>
> (decimal ascii code)^(encryption key) mod (public key)
>
> This calculation is in the order of: 255^2^2048 mod 2^2048. The
> possible encryption keys can of course be much greater the 2^2048,
> they can in fact be infinite!
>
> Without going in to the details of RSA theory, which of course the
> most of you already understand, how is for example 255^2^2048
> calculated in C, PASCAL and DELPHI programs? Since the standaard
> integers do not go further than the 64 bit signed or unsigned!
>
> unsigned 64 bit = (10)log 2^64 = about 19 decimal digits
>
> (10) log 255^2^2048 = about 9857 decimal digits (This as I said
> earlier at the low end, the high end is infinite)
>
> I hope I made my problem clear. What I am searching for is the source
> code of large integer units for C, PASCAL and DELPHI.
>
> Kind Regards,
>
> Johan.



Relevant Pages

  • Re: How To Handle Huge Numbers In 2048 Bit RSA
    ... ]> To my knowledge the numbers of 2048 bit RSA encryption involve the ... ]> calculation: ... ]> calculated in C, PASCAL and DELPHI programs? ... Get the source code for gpg and look at the largeint package. ...
    (sci.crypt)
  • Re: How To Handle Huge Numbers In 2048 Bit RSA
    ... > To my knowledge the numbers of 2048 bit RSA encryption involve the ... > calculated in C, PASCAL and DELPHI programs? ... > code of large integer units for C, ...
    (sci.crypt)
  • How To Handle Huge Numbers In 2048 Bit RSA
    ... To my knowledge the numbers of 2048 bit RSA encryption involve the ... This calculation is in the order of: ... calculated in C, PASCAL and DELPHI programs? ...
    (sci.crypt)
  • Re: Fastcode 2005 Challenges
    ... > Which functions do you think that would be most useful for the Delphi ... Some string manipulation? ... MBCS string functions? ... RSA would be nice, but would be a great amount of work because first ...
    (borland.public.delphi.language.basm)
  • Re: Future tools should do less building and more analyzing
    ... Delphi does tail recursion optimization. ... you could write a message handling loop like this: ... This would be optimized into an infinite while loop. ...
    (borland.public.delphi.non-technical)