3
3
from cryptography import x509
4
4
from cryptography .hazmat .backends import default_backend
5
5
from fido2 .attestation import Attestation
6
- from fido2 .ctap2 import CTAP2 , CredentialManagement
6
+ from fido2 .ctap2 import Ctap2 , CredentialManagement
7
7
from fido2 .hid import CTAPHID
8
8
from fido2 .utils import hmac_sha256
9
9
from fido2 .webauthn import PublicKeyCredentialCreationOptions
@@ -76,7 +76,7 @@ def ping(self, data="pong"):
76
76
def reset (
77
77
self ,
78
78
):
79
- CTAP2 (self .get_current_hid_device ()).reset ()
79
+ Ctap2 (self .get_current_hid_device ()).reset ()
80
80
81
81
def change_pin (self , old_pin , new_pin ):
82
82
client = self .get_current_fido_client ()
@@ -114,7 +114,7 @@ def make_credential(self, pin=None):
114
114
def cred_mgmt (self , pin ):
115
115
client = self .get_current_fido_client ()
116
116
token = client .client_pin .get_pin_token (pin )
117
- ctap2 = CTAP2 (self .get_current_hid_device ())
117
+ ctap2 = Ctap2 (self .get_current_hid_device ())
118
118
return CredentialManagement (ctap2 , client .client_pin .protocol , token )
119
119
120
120
def enter_solo_bootloader (
@@ -137,11 +137,11 @@ def is_solo_bootloader(
137
137
pass
138
138
139
139
def program_kbd (self , cmd ):
140
- ctap2 = CTAP2 (self .get_current_hid_device ())
140
+ ctap2 = Ctap2 (self .get_current_hid_device ())
141
141
return ctap2 .send_cbor (0x51 , cmd )
142
142
143
143
def sign_hash (self , credential_id , dgst , pin ):
144
- ctap2 = CTAP2 (self .get_current_hid_device ())
144
+ ctap2 = Ctap2 (self .get_current_hid_device ())
145
145
client = self .get_current_fido_client ()
146
146
if pin :
147
147
pin_token = client .client_pin .get_pin_token (pin )
0 commit comments