From 520df7333c8b6e3f8a12516515898613aa94fa1a Mon Sep 17 00:00:00 2001 From: Viktor Dragomiretskyy Date: Sat, 21 Sep 2019 19:12:25 +1200 Subject: [PATCH] Validate ECDH params signature --- pair.py | 3 ++- proto97/init_flash.py | 21 ++++++++++++--------- proto97/tls.py | 26 ++++++++++++++++++++++---- 3 files changed, 36 insertions(+), 14 deletions(-) diff --git a/pair.py b/pair.py index 90e8612..b0749a4 100644 --- a/pair.py +++ b/pair.py @@ -13,7 +13,8 @@ from proto97.init_db import init_db #tls.trace_enabled=True def restart(): - sleep(2) + print('Sleeping...') + sleep(3) tls.reset() usb.open() usb.send_init() diff --git a/proto97/init_flash.py b/proto97/init_flash.py index 2d18a4e..c73e25e 100644 --- a/proto97/init_flash.py +++ b/proto97/init_flash.py @@ -85,7 +85,6 @@ def partition_flash(layout, client_public): crt_len, rsp=rsp[:4], rsp[4:] crt_len, = unpack('