Assembly code of TEA encryption for Atmel 8051 microcontroller

Discussion in 'Embedded Systems and Microcontrollers' started by eng.me, Mar 3, 2013.

  1. eng.me

    Thread Starter New Member

    Dec 10, 2012
    27
    1
    Dear all,
    I'm using Atmel 8051 microcontroller for my final year project to design an secured Wireless data communication device.
    the algorithm that I use for the encryption is called TEA (Tiny Encryption Algorithm ) .
    The problem is that it is very difficult to WRITE the code of the algorithm using Assembly language of 8051 microcontroller and there is not enough time to try SO can someone help me to find the assembly source code of TEA for 8051 microcontroller.
    By the way, I tried to searching on the Internet put I did not find what am I seeking.
     
  2. MrChips

    Moderator

    Oct 2, 2009
    12,451
    3,370
    Step 1. Find code written in C.
    Step 2. Understand how the algorithm works.
    Step 3. Convert the C code and algorithm steps into ASM code.
     
  3. eng.me

    Thread Starter New Member

    Dec 10, 2012
    27
    1
    Thank you MrChips .
    I tried that, but it is not that easy.
    Can someone suggest me another encryption & decryption algorithm can be implemented in ATMEL 8-bit 8051 microcontroller?
     
  4. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,395
    1,607
    Step 1. Find code written in C.
    Step 2. Find C compiler for Atmel 8051 microcontroller
    Step 3. Compile the C code into ASM code.
    Step 4. File off all serial numbers and claim the code as your own.
     
    absf and thatoneguy like this.
  5. eng.me

    Thread Starter New Member

    Dec 10, 2012
    27
    1
    Thank's ErnieM
    Could you please explain the fourth step?. I did not got it clearly.
     
    tshuck likes this.
Loading...