Implement challenge 31 to recover HMAC-SHA1 via timing attack

This commit is contained in:
2022-08-27 17:33:42 -04:00
parent bac75acd2c
commit 75d4b97524
3 changed files with 102 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
#![warn(clippy::pedantic)]
#![allow(clippy::cast_precision_loss)]
#![allow(clippy::items_after_statements)]
#![allow(clippy::many_single_char_names)]
#![allow(clippy::module_name_repetitions)]
#![allow(clippy::cast_possible_truncation)]
#![allow(clippy::unnested_or_patterns)]
mod bytes;
mod bytes_base64;
mod cbc;
@@ -15,7 +22,7 @@ mod sha1;
mod utils;
fn main() {
const RUN_ALL: bool = true;
const RUN_ALL: bool = false;
if RUN_ALL {
set1::challenge1();
set1::challenge2();