Posted By: Kartoffel
AES 128 - 06/19/17 09:34
Hey there!
Here's a quick lite-c conversion of the AES-128 implementation found at: https://github.com/kokke/tiny-AES128-C (more info on AES)
Note that this AES implementation is probably not secure against a variety of attacks. On top of that the author provides NO warranty.
I'm using it to encrypt game files.
Important note from aes.c:
Download: AES128_lite-c_19-06-2017.zip (Dropbox)
Download: AES128_lite-c_19-06-2017.zip (update 1) (Dropbox)
Edit: small update: Added (CBC mode) functions to encrypt or decrypt from and into the same buffer, rather than having to use both an input and an output buffer.
Here's a quick lite-c conversion of the AES-128 implementation found at: https://github.com/kokke/tiny-AES128-C (more info on AES)
Note that this AES implementation is probably not secure against a variety of attacks. On top of that the author provides NO warranty.
I'm using it to encrypt game files.
Important note from aes.c:
Code:
NOTE: String length must be evenly divisible by 16byte (str_len % 16 == 0) You should pad the end of the string with zeros if this is not the case.
Download: AES128_lite-c_19-06-2017.zip (Dropbox)
Download: AES128_lite-c_19-06-2017.zip (update 1) (Dropbox)
Edit: small update: Added (CBC mode) functions to encrypt or decrypt from and into the same buffer, rather than having to use both an input and an output buffer.