[U-Boot] AES128 in U-Boot

Hi,
I am wanting to add an AES encryption library to U-Boot. I suppose it should be written in C, with small compiled code/data size (rather than high performance), GPL and fairly easy to read.
Does anyone have any suggestions?
Regards, Simon

Am 15.12.2011 08:30, schrieb Simon Glass:
Hi,
I am wanting to add an AES encryption library to U-Boot. I suppose it should be written in C, with small compiled code/data size (rather than high performance), GPL and fairly easy to read.
Does anyone have any suggestions?
Take a look at libtomcrypt -> http://libtom.org/?page=features&whatfile=crypt
Matthias

On Thursday 15 December 2011 02:30:40 Simon Glass wrote:
I am wanting to add an AES encryption library to U-Boot. I suppose it should be written in C, with small compiled code/data size (rather than high performance), GPL and fairly easy to read.
just has to be GPL compatible
as Matthias already said, libtomcrypt would probably be a good starting point. after that, it'd be see if the BSD's have done anything. -mike

Hi Mike, Matthias,
On Thu, Dec 15, 2011 at 11:29 AM, Mike Frysinger vapier@gentoo.org wrote:
On Thursday 15 December 2011 02:30:40 Simon Glass wrote:
I am wanting to add an AES encryption library to U-Boot. I suppose it should be written in C, with small compiled code/data size (rather than high performance), GPL and fairly easy to read.
just has to be GPL compatible
as Matthias already said, libtomcrypt would probably be a good starting point. after that, it'd be see if the BSD's have done anything. -mike
Thanks to both of you.
libtomcrypt has one but code size is about 10KB for me. I have a public domain one from karl malbrain, malbrain@yahoo.com which is half the size. Can we use public domain code? It seems incompatible with the restrictions in the GPL, but I do see public domain code in U-Boot.
Regards, Simon

On Wednesday 21 December 2011 15:12:20 Simon Glass wrote:
Can we use public domain code? It seems incompatible with the restrictions in the GPL
how so ? public domain (by its definition) has no copyright or license to worry about. so you literally could (legally) do whatever you want with it. thus it's fine for adding to u-boot. -mike

Hi Mike,
On Thu, Jan 5, 2012 at 3:07 PM, Mike Frysinger vapier@gentoo.org wrote:
On Wednesday 21 December 2011 15:12:20 Simon Glass wrote:
Can we use public domain code? It seems incompatible with the restrictions in the GPL
how so ? public domain (by its definition) has no copyright or license to worry about. so you literally could (legally) do whatever you want with it. thus it's fine for adding to u-boot. -mike
OK that's fine then, thanks.
Regards, Simon
participants (3)
-
Matthias Weißer
-
Mike Frysinger
-
Simon Glass