Looking for code in ANSI C for Cryptography

Status
Not open for further replies.

gorkin

Advanced Member level 1
Joined
Feb 27, 2002
Messages
422
Helped
13
Reputation
26
Reaction score
5
Trophy points
1,298
Location
brazil
Visit site
Activity points
3,375
Cryptography and uC

Anyone have the full code in ANSI C for Cryptography like DES64 or DES128, AES128 or RAS?
I have in mind the implementation one of these algorithms is smart cards, it´s possible?
Thanks...
Gorkin
 

Re: Cryptography and uC

gorkin said:
Anyone have the full code in ANSI C for Cryptography like DES64 or DES128, AES128 or RAS?
I have in mind the implementation one of these algorithms is smart cards, it´s possible?
Thanks...
Gorkin

I guess you mean 8-bit uC, right? DES is not good choice in this case, even it can be implemented (check Keil installation - it has example of DES for x51). As to AES, one of the main requirement for cryptoalgorithms during AES contest was that they should be also optimized for smart card implementation. So, just check Google to download sources.

Also, I would recommend to give a look at Square algorithm. It is based on the same idea as Rijndael (and was developed by the same guys as well) and is very easy for implementation with low-level uC. RC4 is good choice if you need stream cipher.

Ace-X.
 

Cryptography and uC

I think TEA (Tiny Encription Algorithm) is useful for uC. I can post algorithm if you want.

Regards.
 

Re: Cryptography and uC

I dont know TEA algorithm, it´s ease for implemantation?
Please, post the algorithm or source code...it´s very usefull for my.
Gorkin
 

Re: Cryptography and uC

I have implemented RC4 on an 8051 a while ago (in assembler).

It is quite easy but needs 256 bytes of memory (xdata in my case).

best regards
 

Re: Cryptography and uC

TEA sources:
/http://www.simonshepherd.supanet.com/tea.htm
/http://www.simonshepherd.supanet.com/source.htm


DES for MSP430:
/http://www.expertis.com.mx/pdfs/DES4MSP430.PDF

Implementing IPsec on a 16-bit microcontroller:
/http://www.hta-bi.bfh.ch/Projects/ipsec/docs/implementing_IPsec.pdf
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…