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
  • What 8051 implementation would this be?

    Have you coded something similar on a PC? How large was the code? Would something of equivalent size fit inside the 8051 part you have chosen?

    You would need to get ALL the source code, you'd need to get ALL of it into your Keil project, and you'd need to compile it there. You are unlikely to be able to take a mishmash of code/libraries compiled for different processors, with different tools, and have them build into a usable form.

    Take a step back, and a deep breath, and THINK about what you are doing.

Reply
  • What 8051 implementation would this be?

    Have you coded something similar on a PC? How large was the code? Would something of equivalent size fit inside the 8051 part you have chosen?

    You would need to get ALL the source code, you'd need to get ALL of it into your Keil project, and you'd need to compile it there. You are unlikely to be able to take a mishmash of code/libraries compiled for different processors, with different tools, and have them build into a usable form.

    Take a step back, and a deep breath, and THINK about what you are doing.

Children
More questions in this forum