From 1536064528787ff145df512e2a953d1ad7951023 Mon Sep 17 00:00:00 2001 From: Hubert Kario Date: Sun, 6 Apr 2014 14:09:03 +0200 Subject: [PATCH] fix and extend reporting of AES-GCM ciphers AES-GCM ciphers don't have "AES-GCM" substring in the openssl name extend reporting of AES ciphers, split to AES-CBC, AES-GCM and AES in general --- top1m/parse_results.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/top1m/parse_results.py b/top1m/parse_results.py index 7e5b1ee..d9029fb 100644 --- a/top1m/parse_results.py +++ b/top1m/parse_results.py @@ -70,7 +70,7 @@ for r,d,flist in os.walk(path): continue; """ store the ciphers supported """ - if 'AES-GCM' in entry['cipher']: + if 'AES128-GCM' in entry['cipher'] or 'AES256-GCM' in entry['cipher']: if not AESGCM: AESGCM = True ciphertypes += 1 @@ -171,6 +171,9 @@ for r,d,flist in os.walk(path): if AES: cipherstats['AES'] += 1 if ciphertypes == 1: + cipherstats['AES-CBC Only'] += 1 + if (AES and ciphertypes == 1) or (AESGCM and ciphertypes == 1)\ + or (AES and AESGCM and ciphertypes == 2): cipherstats['AES Only'] += 1 if DES3: cipherstats['3DES'] += 1