1

When I use these functions AES_cfb128_encrypt() and AES_set_encrypt_key() including oepnssl library I got error as

undefined reference to AES_cfb128_encrypt() and undefined reference to AES_encrypt_key().

Please tell me how to fix this error?

jfly
  • 7,715
  • 3
  • 35
  • 65

1 Answers1

0

You probably forgot to link your program with openssl. Just add the flag -lcrypto (thanks noloader) to your link command

rabensky
  • 2,864
  • 13
  • 18