Advertisement

07.11.2005 at 06:32PM PDT, ID: 21487970
[x]
Attachment Details

AES cipher using openSSL

Asked by choo_chu in Unix Network Security Questions

Tags: openssl, aes

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
 
Loading Advertisement...
 
[+][-]07.11.2005 at 07:26PM PDT, ID: 14418108

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.12.2005 at 07:03AM PDT, ID: 14421466

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.12.2005 at 07:47AM PDT, ID: 14421962

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.12.2005 at 11:34AM PDT, ID: 14424351

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.12.2005 at 06:58PM PDT, ID: 14427576

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Unix Network Security Questions
Tags: openssl, aes
Sign Up Now!
Solution Provided By: jlevie
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.12.2005 at 08:41PM PDT, ID: 14428019

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.12.2005 at 10:03PM PDT, ID: 14428258

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.13.2005 at 06:49AM PDT, ID: 14430917

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.13.2005 at 08:25AM PDT, ID: 14432092

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.13.2005 at 10:01AM PDT, ID: 14433303

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.13.2005 at 12:21PM PDT, ID: 14434669

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.13.2005 at 12:42PM PDT, ID: 14434881

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32