@mega-yfue/eufy-sdk / finishKeyExchange
Function: finishKeyExchange()
ts
function finishKeyExchange(prep, serverPublicKeyB64): SessionEntry;Finish the exchange: decrypt the server's AES-CBC-wrapped public key with the localKey, ECDH-derive, and take the first 32 hex chars as the shareKey.
Parameters
prep
serverPublicKeyB64
string