jvdsandt wrote:Hello Michael,
AES encryption functionality is not part of the standard VA environment. But this functionality is part of the OpenSSL cryptography C library. This library is shipped with VA and is used for the implementation of the SSL/HTTPS features of VA.
The application SciSslOpenSSLInterface contains the code that accesses OpenSSL. Unfortunately only the functions related to SSL/HTTPS communication are wrapped in Smalltalk. If you need to access other functions like the AES related functions you have to write your own wrapper code. I have done this for the SHA1 function that is also part of OpenSSL. See the post:
viewtopic.php?f=12&t=2329&p=9351&hilit=SHA1#p9118I haven't yet figured out how to access the AES functions in OpenSSL. This seems to be a bit more complicated than the SHA1 function. If I get it working or if I find some other way to implement AES in VA Smalltalk I will let you know.
Kind regards,
Jan van de Sandt.
As already mentioned: in the 0.9.7 version are several AES functions ... should they not be usable as you have shown in an earlier posting ?
EVP_aes_128_cbc 0x10050460 0x00050460 2927 (0xb6f) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_128_cfb1 0x100505e0 0x000505e0 3251 (0xcb3) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_128_cfb128 0x10050470 0x00050470 3222 (0xc96) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_128_cfb8 0x10050650 0x00050650 3248 (0xcb0) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_128_ecb 0x10050490 0x00050490 2644 (0xa54) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_128_ofb 0x10050480 0x00050480 3224 (0xc98) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_192_cbc 0x100504a0 0x000504a0 3155 (0xc53) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_192_cfb1 0x10050630 0x00050630 3264 (0xcc0) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_192_cfb128 0x100504b0 0x000504b0 3225 (0xc99) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_192_cfb8 0x100506a0 0x000506a0 3252 (0xcb4) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_192_ecb 0x100504d0 0x000504d0 2862 (0xb2e) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_192_ofb 0x100504c0 0x000504c0 3221 (0xc95) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_256_cbc 0x100505a0 0x000505a0 2996 (0xbb4) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_256_cfb1 0x10050640 0x00050640 3271 (0xcc7) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_256_cfb128 0x100505b0 0x000505b0 3223 (0xc97) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_256_cfb8 0x100506b0 0x000506b0 3255 (0xcb7) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_256_ecb 0x100505d0 0x000505d0 2720 (0xaa0) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function
EVP_aes_256_ofb 0x100505c0 0x000505c0 3220 (0xc94) libeay32.dll C:\OpenSSL\libeay32.dll Exported Function