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