This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Buderus KM200 api
#14
Hi all

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?
Reply


Messages In This Thread
Buderus KM200 api - by MichelDeLigne - 29.04.2019, 18:46
RE: Buderus KM200 api - by sds - 30.10.2019, 22:55
RE: Buderus KM200 api - by MichelDeLigne - 31.10.2019, 08:49
RE: Buderus KM200 api - by sds - 01.11.2019, 19:18
RE: Buderus KM200 api - by m.j.sorokin - 28.07.2020, 18:39
RE: Buderus KM200 api - by MichelDeLigne - 28.07.2020, 20:53
RE: Buderus KM200 api - by admin - 29.07.2020, 05:53
RE: Buderus KM200 api - by MichelDeLigne - 29.07.2020, 07:53
RE: Buderus KM200 api - by m.j.sorokin - 29.07.2020, 13:37
RE: Buderus KM200 api - by admin - 30.07.2020, 06:20
RE: Buderus KM200 api - by MichelDeLigne - 30.07.2020, 07:39
RE: Buderus KM200 api - by m.j.sorokin - 30.07.2020, 07:37
RE: Buderus KM200 api - by admin - 30.07.2020, 08:03
RE: Buderus KM200 api - by sds - 20.05.2024, 13:28
RE: Buderus KM200 api - by admin - 20.05.2024, 13:52
RE: Buderus KM200 api - by sds - 20.05.2024, 17:51
RE: Buderus KM200 api - by admin - 21.05.2024, 08:19
RE: Buderus KM200 api - by sds - 21.05.2024, 19:06

Forum Jump: