2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-16 20:03:41 +01:00

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
This commit is contained in:
Hubert Kario 2014-04-06 14:09:03 +02:00
parent fedf12dd5a
commit 1536064528

View File

@ -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