Re: [cryptography] AES Implementation
If you need C and only AES then http://literatecode.com/aes256 https://github.com/ilvn/aes256ctr Ilya On Tue, May 12, 2015 at 5:47 PM, Givon Zirkind givo...@gmx.com wrote: Hi, Can anyone recommend an open source AES library in some flavor of C? Thanks. G. ___ cryptography mailing list cryptography@randombit.net http://lists.randombit.net/mailman/listinfo/cryptography
Re: [cryptography] AES Implementation
On Tue, May 12, 2015 at 5:47 AM, Givon Zirkind givo...@gmx.com wrote: Hi, Can anyone recommend an open source AES library in some flavor of C? It depends on your goals and threat models. If any old library will do, then check out https://wiki.openssl.org/index.php/Related_Links and http://www.cryptopp.com/wiki/Related_Links. They are fairly comprehensive and up-to-date lists of security libraries. Pick the one you find the best documentation that suits your taste. If you are interested in correctness, speed, and hardening from not-so-common attacks like side channel attacks, then you should see if Bernstein has anything. Libraries like Crypto++ and OpenSSL use table driven implementations, and they are susceptible to the side channel attacks. Bernstein makes great effort to avoid them. Jeff ___ cryptography mailing list cryptography@randombit.net http://lists.randombit.net/mailman/listinfo/cryptography
Re: [cryptography] AES Implementation
OpenSSL's AES implementation is in C and can be built standalone: https://github.com/openssl/openssl/tree/master/crypto/aes Once catch is the /asm directory uses Perl templates to generate assembly files. If you are on an x86 platform, those aesni assembly implementations, mostly by Andy Polyakov with contributions from Intel, are among the fastest I've found. They can also be built into a kernel module. The BoringSSL fork by Adam Langley has a single file implementation. I haven't looked at the diffs from OpenSSL or used it: https://boringssl.googlesource.com/boringssl/+/master/crypto/aes/aes.c Apple has another C implementation here, which I've never used: http://www.opensource.apple.com/source/CommonCrypto/CommonCrypto-55010/Source/AESedp/AES.c NaCL also has a C implementation of AES, but I don't know how easy it would be to use on its own: http://nacl.cr.yp.to/ This was also ported over to libsodium: https://github.com/jedisct1/libsodium/tree/master/src/libsodium/crypto_stream/aes128ctr/portable On Tue, May 12, 2015 at 2:47 AM, Givon Zirkind givo...@gmx.com wrote: Hi, Can anyone recommend an open source AES library in some flavor of C? Thanks. G. ___ cryptography mailing list cryptography@randombit.net http://lists.randombit.net/mailman/listinfo/cryptography ___ cryptography mailing list cryptography@randombit.net http://lists.randombit.net/mailman/listinfo/cryptography