Skip to content

Commit

Permalink
fixup! Merge pull request #184 from google/dependabot/cargo/rust/carg…
Browse files Browse the repository at this point in the history
…o-5c0860a51f

proper naming
  • Loading branch information
burgerdev committed Dec 14, 2024
1 parent a8a7cd8 commit 73172fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/src/cli/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn login(args: &LoginArgs, stdout: &mut dyn io::Write) -> CommandResult {
if handshake.len() < 33 {
return Err("handshake too short".into());
}
let _message_tag_suffix = handshake.split_off(33);
let message_tag_prefix = handshake.split_off(33);
let raw_public_key: [u8; 32] = handshake
.split_off(1)
.try_into()
Expand All @@ -141,9 +141,9 @@ fn login(args: &LoginArgs, stdout: &mut dyn io::Write) -> CommandResult {
let msg = [parts[1], parts[2]].join("/");

// Check message tag in challenge, if present.
let message_tag_prefix_len = _message_tag_suffix.len();
let message_tag_prefix_len = message_tag_prefix.len();
if message_tag_prefix_len > 0
&& !glome::verify(&ours, &theirs, 0, msg.as_bytes(), &_message_tag_suffix)
&& !glome::verify(&ours, &theirs, 0, msg.as_bytes(), &message_tag_prefix)
{
return Err("unexpected message tag prefix".into());
}
Expand Down

0 comments on commit 73172fc

Please sign in to comment.