Skip to content

Commit

Permalink
Add missing algorithm value for the Select command
Browse files Browse the repository at this point in the history
  • Loading branch information
szszszsz committed Nov 21, 2022
1 parent 552a1d0 commit d8392b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/authenticator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ pub struct ChallengingAnswerToSelect {
// instead of '74 00', as with the tagged/Option derivation.
#[tlv(simple = "0x74")] // Tag::Challenge
challenge: [u8; 8],

#[tlv(simple = "0x7b")] // Tag::Algorithm
// algorithm: oath::Algorithm,
algorithm: [u8; 1],
}

impl AnswerToSelect {
Expand All @@ -114,6 +118,8 @@ impl AnswerToSelect {
version: self.version,
salt: self.salt,
challenge: challenge,
// algorithm: oath::Algorithm::Sha1 // TODO set proper algo
algorithm: [0x01] // TODO set proper algo
}
}
}
Expand Down

0 comments on commit d8392b4

Please sign in to comment.