20.05.2024, 13:28
Hi all
Just upgraded from 20230607 to 20240426 version, with error message
I updated aes.lua as suggested in https://forum.logicmachine.net/showthrea...9#pid34799
However, I stumble now to another error (while the Buderus REST API did not change)
Reading the output of the error message thrown by aes decrypt function
resulted in: "EVP_DecryptFinal_ex failed"
Which is thrown by following code
Any suggestion? What info is needed to debug further?
Just upgraded from 20230607 to 20240426 version, with error message
Code:
User library aes:185: Symbol not found: EVP_CIPHER_CTX_block_size
stack traceback:
[C]: in function '__index'
User library aes:185: in function 'new'
User script:107: in function 'km200_GetData'
I updated aes.lua as suggested in https://forum.logicmachine.net/showthrea...9#pid34799
However, I stumble now to another error (while the Buderus REST API did not change)
Reading the output of the error message thrown by aes decrypt function
Code:
local res, err2 = aes_256_ecb:decrypt(encdec.base64dec(decryptData)) -- data block size is always 128 bits
alert (err2)
resulted in: "EVP_DecryptFinal_ex failed"
Which is thrown by following code
Code:
if C.EVP_DecryptFinal_ex(ctx, buf + out_len[0], tmp_len) == 0 then
return nil, "EVP_DecryptFinal_ex failed"
end
Any suggestion? What info is needed to debug further?