Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
176f85a2
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
1 年多 前同步成功
通知
10
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
176f85a2
编写于
7月 31, 2015
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add CCM ciphersuites from RFC6655 and RFC7251
Reviewed-by:
N
Tim Hudson
<
tjh@openssl.org
>
上级
3d3701ea
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
374 addition
and
0 deletion
+374
-0
include/openssl/tls1.h
include/openssl/tls1.h
+54
-0
ssl/s3_lib.c
ssl/s3_lib.c
+320
-0
未找到文件。
include/openssl/tls1.h
浏览文件 @
176f85a2
...
...
@@ -519,6 +519,31 @@ SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,(void (*)(void))cb)
# define TLS1_CK_ADH_WITH_AES_128_GCM_SHA256 0x030000A6
# define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 0x030000A7
/* CCM ciphersuites from RFC6655 */
# define TLS1_CK_RSA_WITH_AES_128_CCM 0x0300C09C
# define TLS1_CK_RSA_WITH_AES_256_CCM 0x0300C09D
# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM 0x0300C09E
# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM 0x0300C09F
# define TLS1_CK_RSA_WITH_AES_128_CCM_8 0x0300C0A0
# define TLS1_CK_RSA_WITH_AES_256_CCM_8 0x0300C0A1
# define TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8 0x0300C0A2
# define TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8 0x0300C0A3
# define TLS1_CK_PSK_WITH_AES_128_CCM 0x0300C0A4
# define TLS1_CK_PSK_WITH_AES_256_CCM 0x0300C0A5
# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM 0x0300C0A6
# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM 0x0300C0A7
# define TLS1_CK_PSK_WITH_AES_128_CCM_8 0x0300C0A8
# define TLS1_CK_PSK_WITH_AES_256_CCM_8 0x0300C0A9
# define TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8 0x0300C0AA
# define TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8 0x0300C0AB
/* CCM ciphersuites from RFC7251 */
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM 0x0300C0AC
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM 0x0300C0AD
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8 0x0300C0AE
# define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8 0x0300C0AF
/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */
# define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BA
# define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BB
...
...
@@ -823,6 +848,35 @@ SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,(void (*)(void))cb)
# define TLS1_TXT_ADH_WITH_AES_128_GCM_SHA256 "ADH-AES128-GCM-SHA256"
# define TLS1_TXT_ADH_WITH_AES_256_GCM_SHA384 "ADH-AES256-GCM-SHA384"
/* CCM ciphersuites from RFC6655 */
# define TLS1_TXT_RSA_WITH_AES_128_CCM "AES128-CCM"
# define TLS1_TXT_RSA_WITH_AES_256_CCM "AES256-CCM"
# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM "DHE-RSA-AES128-CCM"
# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM "DHE-RSA-AES256-CCM"
# define TLS1_TXT_RSA_WITH_AES_128_CCM_8 "AES128-CCM8"
# define TLS1_TXT_RSA_WITH_AES_256_CCM_8 "AES256-CCM8"
# define TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8 "DHE-RSA-AES128-CCM8"
# define TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8 "DHE-RSA-AES256-CCM8"
# define TLS1_TXT_PSK_WITH_AES_128_CCM "PSK-AES128-CCM"
# define TLS1_TXT_PSK_WITH_AES_256_CCM "PSK-AES256-CCM"
# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM "DHE-PSK-AES128-CCM"
# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM "DHE-PSK-AES256-CCM"
# define TLS1_TXT_PSK_WITH_AES_128_CCM_8 "PSK-AES128-CCM8"
# define TLS1_TXT_PSK_WITH_AES_256_CCM_8 "PSK-AES256-CCM8"
# define TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8 "DHE-PSK-AES128-CCM8"
# define TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8 "DHE-PSK-AES256-CCM8"
/* CCM ciphersuites from RFC7251 */
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM "ECDHE-ECDSA-AES128-CCM"
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM "ECDHE-ECDSA-AES256-CCM"
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8 "ECDHE-ECDSA-AES128-CCM8"
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8 "ECDHE-ECDSA-AES256-CCM8"
/* ECDH HMAC based ciphersuites from RFC5289 */
# define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_SHA256 "ECDHE-ECDSA-AES128-SHA256"
...
...
ssl/s3_lib.c
浏览文件 @
176f85a2
...
...
@@ -3450,6 +3450,326 @@ OPENSSL_GLOBAL const SSL_CIPHER ssl3_ciphers[] = {
256
},
#endif
/* Cipher C09C */
{
1
,
TLS1_TXT_RSA_WITH_AES_128_CCM
,
TLS1_CK_RSA_WITH_AES_128_CCM
,
SSL_kRSA
,
SSL_aRSA
,
SSL_AES128CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C09D */
{
1
,
TLS1_TXT_RSA_WITH_AES_256_CCM
,
TLS1_CK_RSA_WITH_AES_256_CCM
,
SSL_kRSA
,
SSL_aRSA
,
SSL_AES256CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C09E */
{
1
,
TLS1_TXT_DHE_RSA_WITH_AES_128_CCM
,
TLS1_CK_DHE_RSA_WITH_AES_128_CCM
,
SSL_kDHE
,
SSL_aRSA
,
SSL_AES128CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C09F */
{
1
,
TLS1_TXT_DHE_RSA_WITH_AES_256_CCM
,
TLS1_CK_DHE_RSA_WITH_AES_256_CCM
,
SSL_kDHE
,
SSL_aRSA
,
SSL_AES256CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0A0 */
{
1
,
TLS1_TXT_RSA_WITH_AES_128_CCM_8
,
TLS1_CK_RSA_WITH_AES_128_CCM_8
,
SSL_kRSA
,
SSL_aRSA
,
SSL_AES128CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0A1 */
{
1
,
TLS1_TXT_RSA_WITH_AES_256_CCM_8
,
TLS1_CK_RSA_WITH_AES_256_CCM_8
,
SSL_kRSA
,
SSL_aRSA
,
SSL_AES256CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0A2 */
{
1
,
TLS1_TXT_DHE_RSA_WITH_AES_128_CCM_8
,
TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8
,
SSL_kDHE
,
SSL_aRSA
,
SSL_AES128CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0A3 */
{
1
,
TLS1_TXT_DHE_RSA_WITH_AES_256_CCM_8
,
TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8
,
SSL_kDHE
,
SSL_aRSA
,
SSL_AES256CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0A4 */
{
1
,
TLS1_TXT_PSK_WITH_AES_128_CCM
,
TLS1_CK_PSK_WITH_AES_128_CCM
,
SSL_kPSK
,
SSL_aPSK
,
SSL_AES128CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0A4 */
{
1
,
TLS1_TXT_PSK_WITH_AES_256_CCM
,
TLS1_CK_PSK_WITH_AES_256_CCM
,
SSL_kPSK
,
SSL_aPSK
,
SSL_AES256CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0A6 */
{
1
,
TLS1_TXT_DHE_PSK_WITH_AES_128_CCM
,
TLS1_CK_DHE_PSK_WITH_AES_128_CCM
,
SSL_kDHEPSK
,
SSL_aPSK
,
SSL_AES128CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0A7 */
{
1
,
TLS1_TXT_DHE_PSK_WITH_AES_256_CCM
,
TLS1_CK_DHE_PSK_WITH_AES_256_CCM
,
SSL_kDHEPSK
,
SSL_aPSK
,
SSL_AES256CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0A8 */
{
1
,
TLS1_TXT_PSK_WITH_AES_128_CCM_8
,
TLS1_CK_PSK_WITH_AES_128_CCM_8
,
SSL_kPSK
,
SSL_aPSK
,
SSL_AES128CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0A9 */
{
1
,
TLS1_TXT_PSK_WITH_AES_256_CCM_8
,
TLS1_CK_PSK_WITH_AES_256_CCM_8
,
SSL_kPSK
,
SSL_aPSK
,
SSL_AES256CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0AA */
{
1
,
TLS1_TXT_DHE_PSK_WITH_AES_128_CCM_8
,
TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8
,
SSL_kDHEPSK
,
SSL_aPSK
,
SSL_AES128CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0AB */
{
1
,
TLS1_TXT_DHE_PSK_WITH_AES_256_CCM_8
,
TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8
,
SSL_kDHEPSK
,
SSL_aPSK
,
SSL_AES256CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0AC */
{
1
,
TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM
,
TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM
,
SSL_kECDHE
,
SSL_aECDSA
,
SSL_AES128CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0AD */
{
1
,
TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM
,
TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM
,
SSL_kECDHE
,
SSL_aECDSA
,
SSL_AES256CCM
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C0AE */
{
1
,
TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CCM_8
,
TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8
,
SSL_kECDHE
,
SSL_aECDSA
,
SSL_AES128CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0AF */
{
1
,
TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CCM_8
,
TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8
,
SSL_kECDHE
,
SSL_aECDSA
,
SSL_AES256CCM8
,
SSL_AEAD
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* end of list */
};
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录