|
|
|
|
|
by klodolph
5122 days ago
|
|
> Finally, you should make sure your application does not exit early if the tag is invalid. You should do all the data processing you would normally do, just short of modifying the database, and check the tag last. If you return early you risk another timing attack. What kind of timing attack is that? In order for there to be a timing attack, there has to be a difference in the timings. 1. You can either process the data, check the authentication code, then commit. 2. Or you can check the authentication code, process the data, then commit. I don't see any attacks on #2 that couldn't also work on #1. |
|