From 611b762a1fd48be2a617178e485eca4af9742aee Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 7 Apr 2025 01:29:02 +0200 Subject: [PATCH] Use K1 curve in emulation mode. Signed-off-by: Pol Henarejos --- tools/pico-hsm-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pico-hsm-tool.py b/tools/pico-hsm-tool.py index 89280ce..d625b83 100644 --- a/tools/pico-hsm-tool.py +++ b/tools/pico-hsm-tool.py @@ -234,7 +234,7 @@ def initialize(picohsm, args): pbk = base64.urlsafe_b64encode(Y) params = {'pubkey': pbk} - if (picohsm.platform in (Platform.RP2350, Platform.ESP32)): + if (picohsm.platform in (Platform.RP2350, Platform.ESP32, Platform.EMULATION)): params['curve'] = 'secp256k1' data = urllib.parse.urlencode(params).encode() j = get_pki_data('cvc', data=data)