2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 14:23: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 fd6fcdd359
commit 2b794ebfe0

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