# Help: How can we manuplate larger value of integer

## irfan_azher — 2002-04-12 21:36:22

    Hi,

    MY PROBLEM IS THAT I AM WORKING ON A PRJOCT OF ENCRYPTION IN WHICH I

    HAVE TO DO LARGE CALCULATION MY QUESTION IS THAT HOW CAN WE CALCULATE

    THE VALUE GREATER THAN THE RANGE OF UNSIGNED LONG INTEGER IN C

    LANGUAGE ? NOTE THAT WE CANT USE THE FLOATING POINT DATA TYPE BECAUSE

    WE CANT PERFORM MODULUS OPERATION ON FLOATING POINT DATA TYPE?

    The fmod() function will preform mouulus on a floating point number.

    SINCE WE ARE IMPLEMENTING THE RSA CRYPTOGRAPHIC ALGORITHM FOR THE

    LARGER VALUES OF P AND Q?

    SUCH THAT

    IF

    P=94329548439832984894389387328943095409347432623897458954874397

    Q=89453477989877432755865327648975896235752398632587328753895473

    1. WHERE CAN AND HOW CAN WE STORE THE VALUES OF P AND Q IF THEY ARE

    SUCH A LARGE NUMBERS AS SHOWN IN THE ABOVE EXAMPLE?

## e1_t — 2002-04-13 04:27:17

    --- In concatenative@y..., "irfan_azher" <irfan_azher@y...> wrote:

     > Hi,

    > MY PROBLEM IS THAT I AM WORKING ON A PRJOCT OF ENCRYPTION IN WHICH

     I

     > HAVE TO DO LARGE CALCULATION MY QUESTION IS THAT HOW CAN WE

     CALCULATE

     > THE VALUE GREATER THAN THE RANGE OF UNSIGNED LONG INTEGER IN C

    > LANGUAGE ? NOTE THAT WE CANT USE THE FLOATING POINT DATA TYPE

     BECAUSE

     > WE CANT PERFORM MODULUS OPERATION ON FLOATING POINT DATA TYPE?

    >

    > The fmod() function will preform mouulus on a floating point number.

    >

    >

    > SINCE WE ARE IMPLEMENTING THE RSA CRYPTOGRAPHIC ALGORITHM FOR THE

    > LARGER VALUES OF P AND Q?

    > SUCH THAT

    > IF

    > P=94329548439832984894389387328943095409347432623897458954874397

    > Q=89453477989877432755865327648975896235752398632587328753895473

    >

    > 1. WHERE CAN AND HOW CAN WE STORE THE VALUES OF P AND Q IF THEY ARE

    > SUCH A LARGE NUMBERS AS SHOWN IN THE ABOVE EXAMPLE?

     And just HOW exactly is that related to Joy?

    WHY are you sending your problem to this message board?

    Furthermore if you don't know how to solve that problem by yourself

    maybe you should start with something simpler like a hello-world-type

    program.

    Ivan