- result = ECDH_compute_key(shared, ECDH_SIZE, point, *ecdh, kdf);
+ int result = EC_POINT_oct2point(EC_KEY_get0_group(*ecdh), point, pubkey, ECDH_SIZE, NULL);
+ if(!result) {
+ EC_POINT_free(point);
+ logger(DEBUG_ALWAYS, LOG_ERR, "Converting binary to EC_POINT failed: %s", ERR_error_string(ERR_get_error(), NULL));
+ return false;
+ }
+
+ result = ECDH_compute_key(shared, ECDH_SIZE, point, *ecdh, NULL);