Looking for Simple C Implementation of AES-128 and DES

Stuart picture Stuart · Jul 28, 2012 · Viewed 11.1k times · Source

I need C versions of AES-128 and DES to run on an embedded SPARC processor. I'm trying to measure the electrical power of these algorithms in software and hardware. Is there a website where I could find software implementations? Currently I can compile C code with my cross-compiler so any language implementations other than C would not be useful.

I have implemented DES in hardware before. How much work would people estimate (hours/lines of code) to implement a software version?

Does anybody know how to use the aes_generic.c and des_generic.c built into the Linux kernel in the crypto directory?

Answer

Michael Burr picture Michael Burr · Jul 29, 2012

You may want to see if LibTomCrypt will meet your needs