Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
35a1cc90
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
接近 2 年 前同步成功
通知
12
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看板
提交
35a1cc90
编写于
1月 17, 2015
作者:
M
Matt Caswell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More comment realignment
Reviewed-by:
N
Tim Hudson
<
tjh@openssl.org
>
上级
50e735f9
变更
36
显示空白变更内容
内联
并排
Showing
36 changed file
with
334 addition
and
329 deletion
+334
-329
apps/gendh.c
apps/gendh.c
+2
-2
apps/s_cb.c
apps/s_cb.c
+4
-4
apps/s_client.c
apps/s_client.c
+2
-2
crypto/bio/b_sock.c
crypto/bio/b_sock.c
+7
-7
crypto/bio/bf_null.c
crypto/bio/bf_null.c
+5
-5
crypto/bio/bss_acpt.c
crypto/bio/bss_acpt.c
+6
-6
crypto/bn/bn_kron.c
crypto/bn/bn_kron.c
+7
-7
crypto/bn/bn_print.c
crypto/bn/bn_print.c
+6
-6
crypto/bn/bn_sqrt.c
crypto/bn/bn_sqrt.c
+26
-26
crypto/cast/casttest.c
crypto/cast/casttest.c
+3
-3
crypto/des/destest.c
crypto/des/destest.c
+1
-1
crypto/des/enc_read.c
crypto/des/enc_read.c
+6
-6
crypto/des/ofb64ede.c
crypto/des/ofb64ede.c
+2
-2
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp256.c
+40
-37
crypto/ec/ecp_nistp521.c
crypto/ec/ecp_nistp521.c
+23
-22
crypto/ec/ecp_oct.c
crypto/ec/ecp_oct.c
+5
-5
crypto/ec/ecp_smpl.c
crypto/ec/ecp_smpl.c
+25
-25
crypto/idea/ideatest.c
crypto/idea/ideatest.c
+3
-3
crypto/lhash/lhash.c
crypto/lhash/lhash.c
+3
-3
crypto/pem/pem.h
crypto/pem/pem.h
+5
-5
crypto/rand/randfile.c
crypto/rand/randfile.c
+4
-4
crypto/rc2/rc2test.c
crypto/rc2/rc2test.c
+3
-3
crypto/threads/mttest.c
crypto/threads/mttest.c
+15
-15
crypto/x509/by_dir.c
crypto/x509/by_dir.c
+2
-2
crypto/x509/x509_lu.c
crypto/x509/x509_lu.c
+2
-2
crypto/x509/x509_r2x.c
crypto/x509/x509_r2x.c
+2
-2
crypto/x509/x509_vfy.c
crypto/x509/x509_vfy.c
+9
-9
crypto/x509/x509name.c
crypto/x509/x509name.c
+10
-10
crypto/x509v3/v3_utl.c
crypto/x509v3/v3_utl.c
+5
-5
demos/engines/zencod/hw_zencod.h
demos/engines/zencod/hw_zencod.h
+8
-8
engines/ccgost/gost_ctl.c
engines/ccgost/gost_ctl.c
+13
-13
engines/e_cswift.c
engines/e_cswift.c
+5
-5
ssl/d1_pkt.c
ssl/d1_pkt.c
+11
-11
ssl/s3_cbc.c
ssl/s3_cbc.c
+19
-19
ssl/s3_clnt.c
ssl/s3_clnt.c
+37
-37
ssl/s3_enc.c
ssl/s3_enc.c
+8
-7
未找到文件。
apps/gendh.c
浏览文件 @
35a1cc90
...
@@ -120,7 +120,7 @@ int MAIN(int argc, char **argv)
...
@@ -120,7 +120,7 @@ int MAIN(int argc, char **argv)
outfile
=
*
(
++
argv
);
outfile
=
*
(
++
argv
);
}
else
if
(
strcmp
(
*
argv
,
"-2"
)
==
0
)
}
else
if
(
strcmp
(
*
argv
,
"-2"
)
==
0
)
g
=
2
;
g
=
2
;
/*- else if (strcmp(*argv,"-3") == 0)
/*- else if (strcmp(*argv,"-3") == 0)
g=3; */
g=3; */
else
if
(
strcmp
(
*
argv
,
"-5"
)
==
0
)
else
if
(
strcmp
(
*
argv
,
"-5"
)
==
0
)
g
=
5
;
g
=
5
;
...
...
apps/s_cb.c
浏览文件 @
35a1cc90
apps/s_client.c
浏览文件 @
35a1cc90
crypto/bio/b_sock.c
浏览文件 @
35a1cc90
crypto/bio/bf_null.c
浏览文件 @
35a1cc90
crypto/bio/bss_acpt.c
浏览文件 @
35a1cc90
crypto/bn/bn_kron.c
浏览文件 @
35a1cc90
crypto/bn/bn_print.c
浏览文件 @
35a1cc90
crypto/bn/bn_sqrt.c
浏览文件 @
35a1cc90
crypto/cast/casttest.c
浏览文件 @
35a1cc90
crypto/des/destest.c
浏览文件 @
35a1cc90
crypto/des/enc_read.c
浏览文件 @
35a1cc90
crypto/des/ofb64ede.c
浏览文件 @
35a1cc90
crypto/ec/ecp_nistp256.c
浏览文件 @
35a1cc90
...
@@ -1094,7 +1094,8 @@ static void smallfelem_inv_contract(smallfelem out, const smallfelem in)
...
@@ -1094,7 +1094,8 @@ static void smallfelem_inv_contract(smallfelem out, const smallfelem in)
*
*
* Building on top of the field operations we have the operations on the
* Building on top of the field operations we have the operations on the
* elliptic curve group itself. Points on the curve are represented in Jacobian
* elliptic curve group itself. Points on the curve are represented in Jacobian
* coordinates */
* coordinates
*/
/*-
/*-
* point_double calculates 2*(x_in, y_in, z_in)
* point_double calculates 2*(x_in, y_in, z_in)
...
@@ -1103,7 +1104,8 @@ static void smallfelem_inv_contract(smallfelem out, const smallfelem in)
...
@@ -1103,7 +1104,8 @@ static void smallfelem_inv_contract(smallfelem out, const smallfelem in)
* http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b
* http://hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b
*
*
* Outputs can equal corresponding inputs, i.e., x_out == x_in is allowed.
* Outputs can equal corresponding inputs, i.e., x_out == x_in is allowed.
* while x_out == y_in is not (maybe this works, but it's not tested). */
* while x_out == y_in is not (maybe this works, but it's not tested).
*/
static
void
static
void
point_double
(
felem
x_out
,
felem
y_out
,
felem
z_out
,
point_double
(
felem
x_out
,
felem
y_out
,
felem
z_out
,
const
felem
x_in
,
const
felem
y_in
,
const
felem
z_in
)
const
felem
x_in
,
const
felem
y_in
,
const
felem
z_in
)
...
@@ -1234,7 +1236,8 @@ static void copy_small_conditional(felem out, const smallfelem in, limb mask)
...
@@ -1234,7 +1236,8 @@ static void copy_small_conditional(felem out, const smallfelem in, limb mask)
* This function includes a branch for checking whether the two input points
* This function includes a branch for checking whether the two input points
* are equal, (while not equal to the point at infinity). This case never
* are equal, (while not equal to the point at infinity). This case never
* happens during single point multiplication, so there is no timing leak for
* happens during single point multiplication, so there is no timing leak for
* ECDH or ECDSA signing. */
* ECDH or ECDSA signing.
*/
static
void
point_add
(
felem
x3
,
felem
y3
,
felem
z3
,
static
void
point_add
(
felem
x3
,
felem
y3
,
felem
z3
,
const
felem
x1
,
const
felem
y1
,
const
felem
z1
,
const
felem
x1
,
const
felem
y1
,
const
felem
z1
,
const
int
mixed
,
const
smallfelem
x2
,
const
int
mixed
,
const
smallfelem
x2
,
...
...
crypto/ec/ecp_nistp521.c
浏览文件 @
35a1cc90
...
@@ -422,7 +422,8 @@ static void felem_square(largefelem out, const felem in)
...
@@ -422,7 +422,8 @@ static void felem_square(largefelem out, const felem in)
* 2 * in[x] * in[y]
* 2 * in[x] * in[y]
* However, rather than do the doubling on the 128 bit result, we
* However, rather than do the doubling on the 128 bit result, we
* double one of the inputs to the multiplication by reading from
* double one of the inputs to the multiplication by reading from
* |inx2| */
* |inx2|
*/
out
[
0
]
=
((
uint128_t
)
in
[
0
])
*
in
[
0
];
out
[
0
]
=
((
uint128_t
)
in
[
0
])
*
in
[
0
];
out
[
1
]
=
((
uint128_t
)
in
[
0
])
*
inx2
[
1
];
out
[
1
]
=
((
uint128_t
)
in
[
0
])
*
inx2
[
1
];
...
...
crypto/ec/ecp_oct.c
浏览文件 @
35a1cc90
crypto/ec/ecp_smpl.c
浏览文件 @
35a1cc90
crypto/idea/ideatest.c
浏览文件 @
35a1cc90
crypto/lhash/lhash.c
浏览文件 @
35a1cc90
crypto/pem/pem.h
浏览文件 @
35a1cc90
crypto/rand/randfile.c
浏览文件 @
35a1cc90
crypto/rc2/rc2test.c
浏览文件 @
35a1cc90
crypto/threads/mttest.c
浏览文件 @
35a1cc90
crypto/x509/by_dir.c
浏览文件 @
35a1cc90
crypto/x509/x509_lu.c
浏览文件 @
35a1cc90
crypto/x509/x509_r2x.c
浏览文件 @
35a1cc90
crypto/x509/x509_vfy.c
浏览文件 @
35a1cc90
crypto/x509/x509name.c
浏览文件 @
35a1cc90
crypto/x509v3/v3_utl.c
浏览文件 @
35a1cc90
demos/engines/zencod/hw_zencod.h
浏览文件 @
35a1cc90
...
@@ -106,14 +106,14 @@ extern "C" {
...
@@ -106,14 +106,14 @@ extern "C" {
/*
/*
* Functions for Digest (MD5, SHA1) stuff
* Functions for Digest (MD5, SHA1) stuff
*/
*/
/* output : output data buffer */
/* output : output data buffer */
/* input : input data buffer */
/* input : input data buffer */
/* algo : hash algorithm, MD5 or SHA1 */
/* algo : hash algorithm, MD5 or SHA1 */
/*-
/*-
* typedef int t_zencod_hash ( KEY *output, const KEY *input, int algo ) ;
* typedef int t_zencod_hash ( KEY *output, const KEY *input, int algo ) ;
* typedef int t_zencod_sha_hash ( KEY *output, const KEY *input, int algo ) ;
* typedef int t_zencod_sha_hash ( KEY *output, const KEY *input, int algo ) ;
*/
*/
/* For now separate this stuff that mad it easier to test */
/* For now separate this stuff that mad it easier to test */
typedef
int
t_zencod_md5_init
(
ZEN_MD_DATA
*
data
);
typedef
int
t_zencod_md5_init
(
ZEN_MD_DATA
*
data
);
typedef
int
t_zencod_md5_update
(
ZEN_MD_DATA
*
data
,
const
KEY
*
input
);
typedef
int
t_zencod_md5_update
(
ZEN_MD_DATA
*
data
,
const
KEY
*
input
);
typedef
int
t_zencod_md5_do_final
(
ZEN_MD_DATA
*
data
,
KEY
*
output
);
typedef
int
t_zencod_md5_do_final
(
ZEN_MD_DATA
*
data
,
KEY
*
output
);
...
...
engines/ccgost/gost_ctl.c
浏览文件 @
35a1cc90
engines/e_cswift.c
浏览文件 @
35a1cc90
ssl/d1_pkt.c
浏览文件 @
35a1cc90
ssl/s3_cbc.c
浏览文件 @
35a1cc90
ssl/s3_clnt.c
浏览文件 @
35a1cc90
ssl/s3_enc.c
浏览文件 @
35a1cc90
...
@@ -754,7 +754,8 @@ int n_ssl3_mac(SSL *ssl, unsigned char *md, int send)
...
@@ -754,7 +754,8 @@ int n_ssl3_mac(SSL *ssl, unsigned char *md, int send)
*
*
* With SHA-1 (the largest hash speced for SSLv3) the hash size
* With SHA-1 (the largest hash speced for SSLv3) the hash size
* goes up 4, but npad goes down by 8, resulting in a smaller
* goes up 4, but npad goes down by 8, resulting in a smaller
* total size. */
* total size.
*/
unsigned
char
header
[
75
];
unsigned
char
header
[
75
];
unsigned
j
=
0
;
unsigned
j
=
0
;
memcpy
(
header
+
j
,
mac_sec
,
md_size
);
memcpy
(
header
+
j
,
mac_sec
,
md_size
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录