Companion: the private key and the BLE PIN are again refused over USB, UART and WiFi -- only paired BLE gets them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-19 17:09:12 +01:00
1 parent cac3249e41
commit 769139999d
5 files changed
+173 -10

No files matched your search

+6
View File
@@ -27,4 +27,10 @@ public:
// distinguish an unauthenticated local channel (USB) from a paired one, so
// callers can gate sensitive commands (key export, PIN read/set).
virtual bool isConnectionSecure() const { return true; }
// CUSTOM (TeTeHacko): a reply that must go back only over the transport the
// request came on -- the private key, the BLE PIN. writeFrame() of a
// multi-transport wrapper sends to every enabled transport, so a key exported
// over paired BLE also went out on USB. Single transports: the same thing.
virtual size_t writeReplyFrame(const uint8_t src[], size_t len) { return writeFrame(src, len); }
};