Jump to content

division, 2048 bits by 1024

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Guest_h4x_*

Guest_h4x_*
  • Guests
im writing RSA algo, so if you have any good idea to do that im listening.
i will use modexp method, (exponent = number of iterations for mul and div)

multiplication is easy, but division gives me nightmares. Seriously, soon it will be a MONTH since i try to solve it.

i have few methods, like divide by 1st part of divisor, mul this by divisor and sub from divident, but this is too complicated for me, for now... Maybe ill understand it in some time.

How do i divide 2 large ammounts of data. All i need is modulo, not division result!

HELP ME PLZ

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What language/libraries have you been using?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Guest_h4x_*

Guest_h4x_*
  • Guests
asm 32 or 64bit
no libraries

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Most languages (Java, C, C++, C#) have large integer libraries that can do this for you. I use GMP for C/C++ quite a bit. Most of the library is probably asm, so that may help you out (it's open-source).
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog