|
|
@ -16,8 +16,8 @@ |
|
|
|
#include "selfdrive/hardware/hw.h" |
|
|
|
#include "selfdrive/hardware/hw.h" |
|
|
|
|
|
|
|
|
|
|
|
const std::string private_key_path = |
|
|
|
const std::string private_key_path = |
|
|
|
Hardware::PC() ? util::getenv_default("HOME", "/.comma/persist/comma/id_rsa", "/persist/comma/id_rsa") |
|
|
|
!Hardware::PC() ? util::getenv_default("HOME", "/.comma/persist/comma/id_rsa", "/persist/comma/id_rsa") |
|
|
|
: "/persist/comma/id_rsa"; |
|
|
|
: "/persist/comma/id_rsa"; |
|
|
|
|
|
|
|
|
|
|
|
QByteArray CommaApi::rsa_sign(const QByteArray &data) { |
|
|
|
QByteArray CommaApi::rsa_sign(const QByteArray &data) { |
|
|
|
auto file = QFile(private_key_path.c_str()); |
|
|
|
auto file = QFile(private_key_path.c_str()); |
|
|
|