Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e6332489
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看板
提交
e6332489
编写于
6月 27, 2014
作者:
P
PK
提交者:
Dr. Stephen Henson
6月 27, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add SHA256 Camellia ciphersuites from RFC5932
PR#2800
上级
b36f35cd
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
226 addition
and
0 deletion
+226
-0
ssl/s3_lib.c
ssl/s3_lib.c
+196
-0
ssl/tls1.h
ssl/tls1.h
+30
-0
未找到文件。
ssl/s3_lib.c
浏览文件 @
e6332489
...
@@ -2028,6 +2028,202 @@ OPENSSL_GLOBAL SSL_CIPHER ssl3_ciphers[]={
...
@@ -2028,6 +2028,202 @@ OPENSSL_GLOBAL SSL_CIPHER ssl3_ciphers[]={
},
},
#endif
#endif
#ifndef OPENSSL_NO_CAMELLIA
/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */
/* Cipher BA */
{
1
,
TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256
,
TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256
,
SSL_kRSA
,
SSL_aRSA
,
SSL_CAMELLIA128
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher BB */
{
1
,
TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256
,
TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256
,
SSL_kDHd
,
SSL_aDH
,
SSL_CAMELLIA128
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher BC */
{
1
,
TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256
,
TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256
,
SSL_kDHr
,
SSL_aDH
,
SSL_CAMELLIA128
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher BD */
{
1
,
TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256
,
TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256
,
SSL_kEDH
,
SSL_aDSS
,
SSL_CAMELLIA128
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher BE */
{
1
,
TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
,
TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256
,
SSL_kEDH
,
SSL_aRSA
,
SSL_CAMELLIA128
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher BF */
{
1
,
TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256
,
TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256
,
SSL_kEDH
,
SSL_aNULL
,
SSL_CAMELLIA128
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
128
,
128
,
},
/* Cipher C0 */
{
1
,
TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256
,
TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256
,
SSL_kRSA
,
SSL_aRSA
,
SSL_CAMELLIA256
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C1 */
{
1
,
TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256
,
TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256
,
SSL_kDHd
,
SSL_aDH
,
SSL_CAMELLIA256
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C2 */
{
1
,
TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256
,
TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256
,
SSL_kDHr
,
SSL_aDH
,
SSL_CAMELLIA256
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C3 */
{
1
,
TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256
,
TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256
,
SSL_kEDH
,
SSL_aDSS
,
SSL_CAMELLIA256
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C4 */
{
1
,
TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
,
TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256
,
SSL_kEDH
,
SSL_aRSA
,
SSL_CAMELLIA256
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
/* Cipher C5 */
{
1
,
TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256
,
TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256
,
SSL_kEDH
,
SSL_aNULL
,
SSL_CAMELLIA256
,
SSL_SHA256
,
SSL_TLSV1_2
,
SSL_NOT_EXP
|
SSL_HIGH
,
SSL_HANDSHAKE_MAC_SHA256
|
TLS1_PRF_SHA256
,
256
,
256
,
},
#endif
#ifndef OPENSSL_NO_ECDH
#ifndef OPENSSL_NO_ECDH
/* Cipher C001 */
/* Cipher C001 */
{
{
...
...
ssl/tls1.h
浏览文件 @
e6332489
...
@@ -510,6 +510,21 @@ SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,(void (*)(void))cb)
...
@@ -510,6 +510,21 @@ 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_128_GCM_SHA256 0x030000A6
#define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 0x030000A7
#define TLS1_CK_ADH_WITH_AES_256_GCM_SHA384 0x030000A7
/* 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
#define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BC
#define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 0x030000BD
#define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 0x030000BE
#define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256 0x030000BF
#define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C0
#define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C1
#define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C2
#define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 0x030000C3
#define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 0x030000C4
#define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256 0x030000C5
/* ECC ciphersuites from draft-ietf-tls-ecc-12.txt with changes soon to be in draft 13 */
/* ECC ciphersuites from draft-ietf-tls-ecc-12.txt with changes soon to be in draft 13 */
#define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA 0x0300C001
#define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA 0x0300C001
#define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA 0x0300C002
#define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA 0x0300C002
...
@@ -666,6 +681,21 @@ SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,(void (*)(void))cb)
...
@@ -666,6 +681,21 @@ SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,(void (*)(void))cb)
#define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "DHE-RSA-CAMELLIA256-SHA"
#define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA "DHE-RSA-CAMELLIA256-SHA"
#define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA "ADH-CAMELLIA256-SHA"
#define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA "ADH-CAMELLIA256-SHA"
/* TLS 1.2 Camellia SHA-256 ciphersuites from RFC5932 */
#define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA256 "CAMELLIA128-SHA256"
#define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DH-DSS-CAMELLIA128-SHA256"
#define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DH-RSA-CAMELLIA128-SHA256"
#define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 "DHE-DSS-CAMELLIA128-SHA256"
#define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 "DHE-RSA-CAMELLIA128-SHA256"
#define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA256 "ADH-CAMELLIA128-SHA256"
#define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA256 "CAMELLIA256-SHA256"
#define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DH-DSS-CAMELLIA256-SHA256"
#define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DH-RSA-CAMELLIA256-SHA256"
#define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 "DHE-DSS-CAMELLIA256-SHA256"
#define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 "DHE-RSA-CAMELLIA256-SHA256"
#define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA256 "ADH-CAMELLIA256-SHA256"
/* SEED ciphersuites from RFC4162 */
/* SEED ciphersuites from RFC4162 */
#define TLS1_TXT_RSA_WITH_SEED_SHA "SEED-SHA"
#define TLS1_TXT_RSA_WITH_SEED_SHA "SEED-SHA"
#define TLS1_TXT_DH_DSS_WITH_SEED_SHA "DH-DSS-SEED-SHA"
#define TLS1_TXT_DH_DSS_WITH_SEED_SHA "DH-DSS-SEED-SHA"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录