• Home
  • Raw
  • Download

Lines Matching +full:aes +full:- +full:256 +full:- +full:cbc

6 # SPDX-License-Identifier: Apache-2.0
12 # http://www.apache.org/licenses/LICENSE-2.0
24 python3 -m unittest translate_cipher.py
44 "+ECDHE-ECDSA:+NULL:+SHA1",
45 "ECDHE-ECDSA-NULL-SHA",
46 "TLS-ECDHE-ECDSA-WITH-NULL-SHA"),
48 "+ECDHE-ECDSA:+AES-128-GCM:+AEAD",
49 "ECDHE-ECDSA-AES128-GCM-SHA256",
50 "TLS-ECDHE-ECDSA-WITH-AES-128-GCM-SHA256"),
52 "+DHE-RSA:+3DES-CBC:+SHA1",
53 "EDH-RSA-DES-CBC3-SHA",
54 "TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA"),
56 "+RSA:+AES-256-CBC:+SHA1",
57 "AES256-SHA",
58 "TLS-RSA-WITH-AES-256-CBC-SHA"),
60 "+PSK:+3DES-CBC:+SHA1",
61 "PSK-3DES-EDE-CBC-SHA",
62 "TLS-PSK-WITH-3DES-EDE-CBC-SHA"),
65 "ECDHE-ECDSA-CHACHA20-POLY1305",
66 "TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256"),
68 "+ECDHE-ECDSA:+AES-128-CCM:+AEAD",
70 "TLS-ECDHE-ECDSA-WITH-AES-128-CCM"),
73 "ECDHE-ARIA256-GCM-SHA384",
74 "TLS-ECDHE-RSA-WITH-ARIA-256-GCM-SHA384"),
97 # Replace "_" with "-" to handle ciphersuite names based on Mbed TLS
99 s_cipher = s_cipher.replace("_", "-")
101 s_cipher = re.sub(r'\ATLS-', '+', s_cipher)
102 s_cipher = s_cipher.replace("-WITH-", ":+")
103 s_cipher = s_cipher.replace("-EDE", "")
107 if s_cipher[-3:] == "SHA":
110 # CCM or CCM-8 should be followed by ":+AEAD"
113 s_cipher = re.sub(r"GCM-SHA\d\d\d", "GCM", s_cipher)
116 # Replace the last "-" with ":+"
118 index = s_cipher.rindex("-")
129 # Replace "_" with "-" to handle ciphersuite names based on Mbed TLS
131 s_cipher = s_cipher.replace("_", "-")
133 s_cipher = re.sub(r'^TLS-', '', s_cipher)
134 s_cipher = s_cipher.replace("-WITH", "")
136 # Remove the "-" from "ABC-xyz"
137 s_cipher = s_cipher.replace("AES-", "AES")
138 s_cipher = s_cipher.replace("CAMELLIA-", "CAMELLIA")
139 s_cipher = s_cipher.replace("ARIA-", "ARIA")
142 s_cipher = re.sub(r'^RSA-', r'', s_cipher)
146 s_cipher = s_cipher.replace("-EDE", "")
147 s_cipher = s_cipher.replace("3DES-CBC", "DES-CBC3")
149 # Remove "CBC" if it is not prefixed by DES
150 s_cipher = re.sub(r'(?<!DES-)CBC-', r'', s_cipher)
152 # ECDHE-RSA-ARIA does not exist in OpenSSL
153 s_cipher = s_cipher.replace("ECDHE-RSA-ARIA", "ECDHE-ARIA")
172 # Replace "_" with "-"
173 s_cipher = s_cipher.replace("_", "-")