Topic: about AesEncryptDirect(...)

I'm trying to use Aes 128 bit ECB mode,
I found this discussion
http://www.yassl.com/forums/topic428-ae … rithm.html
that AesEncryptDirect(...) could do this.

I add

#ifndef CYASSL_AES_DIRECT
#define CYASSL_AES_DIRECT
#endif

before

#ifdef CYASSL_AES_DIRECT

of file aes.c

and it makes libcyassl.so well.

but when I link cyassl lib, during execusion,
it could not work

Building target: aes_ecb_cyassl
Invoking: GCC C Linker
gcc -L/home/chris/installed_library/cyassl-2.8.0-test/lib -o "aes_ecb_cyassl"  ./src/aes_ecb_cyassl.o   -lcyassl -Wl,-rpath -Wl,LIBDIR
Finished building target: aes_ecb_cyassl
 
chris@chris-VirtualBox:~/workspace/aes_ecb_cyassl/Debug$ ./aes_ecb_cyassl 
./aes_ecb_cyassl: symbol lookup error: ./aes_ecb_cyassl: undefined symbol: AesEncryptDirect

How could I fix this?

Thanks

Share

Re: about AesEncryptDirect(...)

Are you using configure to set up your build first? Did you try:

./configure C_EXTRA_FLAGS=-DCYASSL_AES_DIRECT
make
./ctaocrypt/test/testctaocrypt

One other question, why are you using such an old copy of CyaSSL embedded SSL? v2.8.0 is from late 2013. I'd recommend upgrading to the current version of wolfSSL. (We changed the name of the library recently. Same code, different name.)