mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 01:18:06 +00:00
Use K1 curve in emulation mode.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
7c1ef56799
commit
611b762a1f
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ def initialize(picohsm, args):
|
||||||
|
|
||||||
pbk = base64.urlsafe_b64encode(Y)
|
pbk = base64.urlsafe_b64encode(Y)
|
||||||
params = {'pubkey': pbk}
|
params = {'pubkey': pbk}
|
||||||
if (picohsm.platform in (Platform.RP2350, Platform.ESP32)):
|
if (picohsm.platform in (Platform.RP2350, Platform.ESP32, Platform.EMULATION)):
|
||||||
params['curve'] = 'secp256k1'
|
params['curve'] = 'secp256k1'
|
||||||
data = urllib.parse.urlencode(params).encode()
|
data = urllib.parse.urlencode(params).encode()
|
||||||
j = get_pki_data('cvc', data=data)
|
j = get_pki_data('cvc', data=data)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue