This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

elliptic curve cryptography on 8051

Hey guys, I am working on making Elliptic Curve Cryptography El-Gamal in 8051 MCU using Keil uvision 4. I want to make it 128 bit, so I need to use GMP library. However, to use GMP I usually download it in mingw-get-setup first, so I think it won't run if I just copy the gmp.h to my project in Keil.

My questions are :

1. how can I use gmp in 8051 using Keil?

2. Or should I compile it first in gcc, then just download the hex file to 8051? How to program the register in gcc?

Thanks for your attention :D

Best regards

Parents Reply Children
  • Yes actually it works after I put the declaration on top. However, the pointer c I create share the same address as the variable a. Anyone know how to make they have different address?

    c : X:0x000000

    a : X:0x000000[...]

    Thus, when I debug it by putting the cursor to while(1) and run to cursor line, the c have value 0, although it should have different value when I run it on GCC. Is it because c and a have the same address?