Added more TLS cipher suites we already support
[strongswan.git] / src / libtls / tls_crypto.c
index acb732e..90d15cb 100644 (file)
@@ -340,46 +340,52 @@ typedef struct {
  */
 static suite_algs_t suite_algs[] = {
        { TLS_RSA_WITH_NULL_MD5,
-               HASH_MD5,
-               PRF_HMAC_MD5,
-               AUTH_HMAC_MD5_128,
-               ENCR_NULL, 0
+               HASH_MD5, PRF_HMAC_MD5,
+               AUTH_HMAC_MD5_128, ENCR_NULL, 0
        },
        { TLS_RSA_WITH_NULL_SHA,
-               HASH_SHA1,
-               PRF_HMAC_SHA1,
-               AUTH_HMAC_SHA1_160,
-               ENCR_NULL, 0
+               HASH_SHA1, PRF_HMAC_SHA1,
+               AUTH_HMAC_SHA1_160, ENCR_NULL, 0
        },
        { TLS_RSA_WITH_NULL_SHA256,
-               HASH_SHA256,
-               PRF_HMAC_SHA2_256,
-               AUTH_HMAC_SHA2_256_256,
-               ENCR_NULL, 0
+               HASH_SHA256, PRF_HMAC_SHA2_256,
+               AUTH_HMAC_SHA2_256_256, ENCR_NULL, 0
+       },
+       { TLS_RSA_WITH_3DES_EDE_CBC_SHA,
+               HASH_SHA1, PRF_HMAC_SHA1,
+               AUTH_HMAC_SHA1_160, ENCR_3DES, 0
        },
        { TLS_RSA_WITH_AES_128_CBC_SHA,
-               HASH_SHA1,
-               PRF_HMAC_SHA1,
-               AUTH_HMAC_SHA1_160,
-               ENCR_AES_CBC, 16
+               HASH_SHA1, PRF_HMAC_SHA1,
+               AUTH_HMAC_SHA1_160, ENCR_AES_CBC, 16
+       },
+       { TLS_RSA_WITH_AES_128_CBC_SHA256,
+               HASH_SHA256, PRF_HMAC_SHA2_256,
+               AUTH_HMAC_SHA2_256_256, ENCR_AES_CBC, 16
        },
        { TLS_RSA_WITH_AES_256_CBC_SHA,
-               HASH_SHA1,
-               PRF_HMAC_SHA1,
-               AUTH_HMAC_SHA1_160,
-               ENCR_AES_CBC, 32
+               HASH_SHA1, PRF_HMAC_SHA1,
+               AUTH_HMAC_SHA1_160, ENCR_AES_CBC, 32
        },
-       { TLS_RSA_WITH_3DES_EDE_CBC_SHA,
-               HASH_SHA1,
-               PRF_HMAC_SHA1,
-               AUTH_HMAC_SHA1_160,
-               ENCR_3DES, 0
+       { TLS_RSA_WITH_AES_256_CBC_SHA256,
+               HASH_SHA256, PRF_HMAC_SHA2_256,
+               AUTH_HMAC_SHA2_256_256, ENCR_AES_CBC, 32
        },
-       { TLS_RSA_WITH_AES_128_CBC_SHA256,
-               HASH_SHA256,
-               PRF_HMAC_SHA2_256,
-               AUTH_HMAC_SHA2_256_256,
-               ENCR_AES_CBC, 16
+       { TLS_RSA_WITH_CAMELLIA_128_CBC_SHA,
+               HASH_SHA1, PRF_HMAC_SHA1,
+               AUTH_HMAC_SHA1_160, ENCR_CAMELLIA_CBC, 16
+       },
+       { TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256,
+               HASH_SHA256, PRF_HMAC_SHA2_256,
+               AUTH_HMAC_SHA2_256_256, ENCR_CAMELLIA_CBC, 16
+       },
+       { TLS_RSA_WITH_CAMELLIA_256_CBC_SHA,
+               HASH_SHA1, PRF_HMAC_SHA1,
+               AUTH_HMAC_SHA1_160, ENCR_CAMELLIA_CBC, 32
+       },
+       { TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256,
+               HASH_SHA256, PRF_HMAC_SHA2_256,
+               AUTH_HMAC_SHA2_256_256, ENCR_CAMELLIA_CBC, 32
        },
 };