This is a small portable (and slow) implementation of AES128 in C.
The module uses less than 250 bytes of RAM and ~1.5K ROM.
AES128 ECB is symmetric, so you use the same function for encrypting and decrypting.