From 838a71637adff2497cdd1cfa0eb13a0e990800e0 Mon Sep 17 00:00:00 2001 From: jsteube Date: Sun, 17 Dec 2017 23:29:02 +0100 Subject: [PATCH] Remove fixed iteration count for apple secure notes --- include/interface.h | 2 +- src/interface.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/interface.h b/include/interface.h index 33d2bacd8..72074aa53 100644 --- a/include/interface.h +++ b/include/interface.h @@ -1316,7 +1316,7 @@ typedef enum display_len DISPLAY_LEN_MIN_16100 = 1 + 11 + 1 + 1 + 1 + 8 + 12 + 1 + 4, DISPLAY_LEN_MAX_16100 = 1 + 11 + 1 + 1 + 1 + 8 + 256 + 1 + 4, DISPLAY_LEN_MIN_16200 = 5 + 1 + 1 + 1 + 5 + 1 + 32 + 1 + 48, - DISPLAY_LEN_MAX_16200 = 5 + 1 + 5 + 1 + 5 + 1 + 32 + 1 + 48, + DISPLAY_LEN_MAX_16200 = 5 + 1 + 6 + 1 + 5 + 1 + 32 + 1 + 48, DISPLAY_LEN_MIN_99999 = 1, DISPLAY_LEN_MAX_99999 = 55, diff --git a/src/interface.c b/src/interface.c index 708bca0b0..81c242e78 100644 --- a/src/interface.c +++ b/src/interface.c @@ -15896,7 +15896,7 @@ int apple_secure_notes_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_bu if (is_valid_hex_string (ZCRYPTOSALT_pos, ZCRYPTOSALT_len) == false) return (PARSER_SALT_ENCODING); if (is_valid_hex_string (ZCRYPTOWRAPPEDKEY_pos, ZCRYPTOWRAPPEDKEY_len) == false) return (PARSER_SALT_ENCODING); - if (ZCRYPTOITERATIONCOUNT != 20000) return (PARSER_SALT_ENCODING); + //if (ZCRYPTOITERATIONCOUNT != 20000) return (PARSER_SALT_ENCODING); /** * store data