Search:

Type: Posts; User: davidx

Search: Search took 0.00 seconds.

  1. Thread: bigint modpow

    by davidx
    Replies
    3
    Views
    6,807

    i need this function int power(int x, int...

    i need this function


    int power(int x, int exp, int n)
    {
    int res = 1; // Initialize result

    x = x % n; // Update x if it is more than or
    // equal to p
  2. Thread: bigint modpow

    by davidx
    Replies
    3
    Views
    6,807

    bigint modpow

    hello, im searching a function in c for modular exponentiation modpow using bigint.
    i just find for c#, anyone can help?
  3. Thread: hex increment

    by davidx
    Replies
    3
    Views
    6,896

    many thanks , it works.

    many thanks , it works.
  4. Thread: hex increment

    by davidx
    Replies
    3
    Views
    6,896

    hex increment

    hello, i would like some best way to increment in hex.
    example:


    uint8_t key[16]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x30,0x30,0xFF};

    increment value and result:
  5. Replies
    4
    Views
    1,600

    Im novice to c code , can you add code at code...

    Im novice to c code , can you add code at code above?
  6. Replies
    4
    Views
    1,600

    add sequence number

    Hello , im sending a message "teste" by udp socket, i would like to add a sequence number at teste like:

    teste1
    teste2
    teste3
    teste4 and so on....
    i got this peace of code:
Results 1 to 6 of 6