Content-Type: multipart/mixed; boundary="===============4843148489932775505==" MIME-Version: 1.0 From: Andrew Zaborowski Subject: [PATCH 4/8] tls: Add TLS_RSA_WITH_AES_128_GCM_SHA256 cipher suite Date: Sat, 17 Nov 2018 14:38:07 +0100 Message-ID: <20181117133811.5470-4-andrew.zaborowski@intel.com> In-Reply-To: <20181117133811.5470-1-andrew.zaborowski@intel.com> List-Id: To: ell@lists.01.org --===============4843148489932775505== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Defined in RFC5288. This cipher suite is preferred by a lot of servers over the block mode AES suites and also serves to test the AES GCM support which, together with the ECDHE key exchange that we don't have yet, is required by Suite B and other profiles. --- ell/tls.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ell/tls.c b/ell/tls.c index fd26306..fab4ce6 100644 --- a/ell/tls.c +++ b/ell/tls.c @@ -413,6 +413,13 @@ static struct tls_bulk_encryption_algorithm tls_rc4 = =3D { .key_length =3D 24, .iv_length =3D 8, .block_length =3D 8, +}, tls_aes128_gcm =3D { + .cipher_type =3D TLS_CIPHER_AEAD, + .l_aead_id =3D L_AEAD_CIPHER_AES_GCM, + .key_length =3D 16, + .iv_length =3D 12, + .fixed_iv_length =3D 4, + .auth_tag_length =3D 16, }; = static struct tls_mac_algorithm tls_md5 =3D { @@ -462,6 +469,13 @@ static struct tls_cipher_suite tls_cipher_suite_pref[]= =3D { .mac =3D &tls_sha256, .key_xchg =3D &tls_rsa, }, + { + .id =3D { 0x00, 0x9c }, + .name =3D "TLS_RSA_WITH_AES_128_GCM_SHA256", + .verify_data_length =3D 12, + .encryption =3D &tls_aes128_gcm, + .key_xchg =3D &tls_rsa, + }, { .id =3D { 0x00, 0x0a }, .name =3D "TLS_RSA_WITH_3DES_EDE_CBC_SHA", -- = 2.19.1 --===============4843148489932775505==--