Hi All,
I'm having some problems getting the EVP_aes_XXX functions to work in my program. Here is a little test I wrote to reproduce the problem.
int
main()
{
unsigned char key[MAX_EVP_KEY_LENGTH]
Generate_Random_Val( key, MAX_EVP_KEY_LENGTH);
unsigned char iv[MAX_EVP_IV_LENGTH];
Generate_Random_Val(iv, MAX_EVP_IV_LENGTH];
EVP_CIPHER_CTX ctx;
EVP_EncryptInit( &ctx, EVP_aes_256_cbc(), key, iv );
EVP_EncryptFinal(...);
return 0;
}
Generate_Random_Val is defined else where and makes random keys for iv and key.
This code compiles, but when it links, it says
EVP_aes_256_cbc() is undefined reference, not found.
It finds EVP_EncryptInit and EVP_EncryptFinal, tho and my own functions.
I'm using openSSL 0.9.7g on Solaris 9.
According to the openSSL documentation, AES is supported, but I don't understand why it isn't working.
Any help is appreciated.
Thanks.
Melinda
Start Free Trial