针对你遇到的“undefined reference to aes_set_encrypt_key'”问题,这通常意味着链接器在尝试构建你的项目时未能找到aes_set_encrypt_key`函数的定义。下面我将按照你提供的提示逐一分析并给出可能的解决方案: 确认aes_set_encrypt_key函数的来源库: aes_set_encrypt_key函数通常来自于OpenSSL或其他加密库。你需要...
libcrypto.a(aes_ofb.o): In function `AES_ofb128_encrypt': aes_ofb.c:(.text+0x21c): undefined reference to `ippGetCpuFeatures' aes_ofb.c:(.text+0x303): undefined reference to `ippsRijndael128EncryptOFB' libcrypto.a(aes_cbc.o): In function `AES_cbc_encrypt': aes_cbc...
PdfEncrypt.cpp:(.text+0x2183): undefined reference to `MD5_Init' PdfEncrypt.cpp:(.text+0x220a): undefined reference to `MD5_Update' PdfEncrypt.cpp:(.text+0x2284): undefined reference to `MD5_Final' PdfEncrypt.cpp:(.text+0x233d): undefined reference to `MD5_Init' PdfEncrypt.cpp:(.te...
undefined reference to `PKCS5_PBKDF2_HMAC' /usr/bin/ld: adduser.o: in function `genSalt': adduser.c:(.text+0x141): undefined reference to `RAND_bytes' /usr/bin/ld: adduser.o: in function `Encrypt': adduser.c:(.text+0x1fa): undefined reference to `EVP_aes_256_cbc' /usr/bin...
I have the similar problem when I try to use binary key of AES.encrypt instead of plain string password. importcryptofrom'crypto-js'// write a simple ase encryption function testconstencrypt=(text,key)=>{returncrypto.AES.encrypt(text,key).toString()// key is a string, and it works with...