challenge/response definition change

This commit is contained in:
NIIBE Yutaka
2012-05-31 12:34:11 +09:00
parent 95f328f94f
commit 2215a6dd2c
4 changed files with 10 additions and 8 deletions

View File

@@ -887,8 +887,8 @@ cmd_write_binary (void)
if (i == 4) /* all update keys are removed */
{
p = gpg_get_firmware_update_key (0)
flash_erase_page ((uint32_t)p);
p = gpg_get_firmware_update_key (0);
flash_erase_page ((uint32_t)p);
}
DEBUG_INFO ("WRITE BINARY done.\r\n");
@@ -921,7 +921,7 @@ cmd_external_authenticate (void)
return;
}
r = rsa_verify (pubkey, challenge, CHALLENGE_LEN, signature);
r = rsa_verify (pubkey, challenge, signature);
random_bytes_free (challenge);
challenge = NULL;
if (r < 0)