Use K1 curve in emulation mode.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2025-04-07 01:29:02 +02:00
parent 7c1ef56799
commit 611b762a1f
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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)