@ -16,12 +16,13 @@ pub enum Request<'a> {
} ,
} ,
SetPin {
SetPin {
version : auth_protocol ::Version ,
version : auth_protocol ::Version ,
key_agreement : & ' a coset ::Cose Key,
key_agreement : cosey ::Public Key,
new_pin_encrypted : & ' a [ u8 ] ,
new_pin_encrypted : & ' a [ u8 ] ,
pin_uv_auth_param : & ' a [ u8 ] ,
pin_uv_auth_param : & ' a [ u8 ] ,
} ,
} ,
ChangePin {
ChangePin {
version : auth_protocol ::Version ,
version : auth_protocol ::Version ,
key_agreement : cosey ::PublicKey ,
pin_hash_encrypted : & ' a [ u8 ] ,
pin_hash_encrypted : & ' a [ u8 ] ,
new_pin_encrypted : & ' a [ u8 ] ,
new_pin_encrypted : & ' a [ u8 ] ,
pin_uv_auth_param : & ' a [ u8 ] ,
pin_uv_auth_param : & ' a [ u8 ] ,
@ -33,14 +34,14 @@ pub enum Request<'a> {
} ,
} ,
GetPinUvAuthTokenUsingUvWithPermissions {
GetPinUvAuthTokenUsingUvWithPermissions {
version : auth_protocol ::Version ,
version : auth_protocol ::Version ,
key_agreement : & ' a coset ::Cose Key,
key_agreement : cosey ::Public Key,
permissions : & ' a BTreeSet < Permission > , // TODO: Enforce non-empty set?
permissions : & ' a BTreeSet < Permission > , // TODO: Enforce non-empty set?
relying_party_id : Option < usize > ,
relying_party_id : Option < usize > ,
} ,
} ,
GetUvRetries ,
GetUvRetries ,
GetPinUvAuthTokenUsingPinWithPermissions {
GetPinUvAuthTokenUsingPinWithPermissions {
version : auth_protocol ::Version ,
version : auth_protocol ::Version ,
key_agreement : & ' a coset ::Cose Key,
key_agreement : cosey ::Public Key,
pin_hash_encrypted : usize ,
pin_hash_encrypted : usize ,
permissions : & ' a BTreeSet < Permission > , // TODO: Enforce non-empty set?
permissions : & ' a BTreeSet < Permission > , // TODO: Enforce non-empty set?
relying_party_id : Option < usize > ,
relying_party_id : Option < usize > ,
@ -58,7 +59,7 @@ pub enum Response {
power_cycle_state : Option < usize > ,
power_cycle_state : Option < usize > ,
} ,
} ,
GetKeyAgreement {
GetKeyAgreement {
key_agreement : cose t::Cose Key,
key_agreement : cose y::Public Key,
} ,
} ,
SetPin {
SetPin {
key_agreement : coset ::CoseKey ,
key_agreement : coset ::CoseKey ,