mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 01:18:06 +00:00
Fix get public key.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
319000df1a
commit
d81d51d6fc
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ class Device:
|
|||
return bytes(resp)
|
||||
|
||||
def public_key(self, keyid, param=None):
|
||||
response = self.get_contents(p1=DOPrefixes.EE_CERTIFICATE_PREFIX, p2=keyid)
|
||||
response = self.get_contents(p1=DOPrefixes.EE_CERTIFICATE_PREFIX.value, p2=keyid)
|
||||
|
||||
cert = bytearray(response)
|
||||
roid = CVC().decode(cert).pubkey().oid()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue