Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
3f4bcf5b
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看板
提交
3f4bcf5b
编写于
1月 21, 2017
作者:
A
Andy Polyakov
提交者:
Matt Caswell
1月 26, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bn/asm/x86_64-mont5.pl: fix carry bug in bn_sqr8x_internal.
CVE-2017-3732 Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
3e7a4963
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
9 deletion
+7
-9
crypto/bn/asm/x86_64-mont5.pl
crypto/bn/asm/x86_64-mont5.pl
+7
-9
未找到文件。
crypto/bn/asm/x86_64-mont5.pl
浏览文件 @
3f4bcf5b
...
@@ -1934,6 +1934,7 @@ __bn_sqr8x_reduction:
...
@@ -1934,6 +1934,7 @@ __bn_sqr8x_reduction:
.align 32
.align 32
.L8x_tail_done:
.L8x_tail_done:
xor %rax,%rax
add (%rdx),%r8 # can this overflow?
add (%rdx),%r8 # can this overflow?
adc \$0,%r9
adc \$0,%r9
adc \$0,%r10
adc \$0,%r10
...
@@ -1941,10 +1942,8 @@ __bn_sqr8x_reduction:
...
@@ -1941,10 +1942,8 @@ __bn_sqr8x_reduction:
adc \$0,%r12
adc \$0,%r12
adc \$0,%r13
adc \$0,%r13
adc \$0,%r14
adc \$0,%r14
adc \$0,%r15 # can't overflow, because we
adc \$0,%r15
# started with "overhung" part
adc \$0,%rax
# of multiplication
xor %rax,%rax
neg $carry
neg $carry
.L8x_no_tail:
.L8x_no_tail:
...
@@ -3384,6 +3383,7 @@ __bn_sqrx8x_reduction:
...
@@ -3384,6 +3383,7 @@ __bn_sqrx8x_reduction:
.align 32
.align 32
.Lsqrx8x_tail_done:
.Lsqrx8x_tail_done:
xor %rax,%rax
add 24+8(%rsp),%r8 # can this overflow?
add 24+8(%rsp),%r8 # can this overflow?
adc \$0,%r9
adc \$0,%r9
adc \$0,%r10
adc \$0,%r10
...
@@ -3391,10 +3391,8 @@ __bn_sqrx8x_reduction:
...
@@ -3391,10 +3391,8 @@ __bn_sqrx8x_reduction:
adc \$0,%r12
adc \$0,%r12
adc \$0,%r13
adc \$0,%r13
adc \$0,%r14
adc \$0,%r14
adc \$0,%r15 # can't overflow, because we
adc \$0,%r15
# started with "overhung" part
adc \$0,%rax
# of multiplication
mov $carry,%rax # xor %rax,%rax
sub 16+8(%rsp),$carry # mov 16(%rsp),%cf
sub 16+8(%rsp),$carry # mov 16(%rsp),%cf
.Lsqrx8x_no_tail: # %cf is 0 if jumped here
.Lsqrx8x_no_tail: # %cf is 0 if jumped here
...
@@ -3409,7 +3407,7 @@ __bn_sqrx8x_reduction:
...
@@ -3409,7 +3407,7 @@ __bn_sqrx8x_reduction:
adc 8*5($tptr),%r13
adc 8*5($tptr),%r13
adc 8*6($tptr),%r14
adc 8*6($tptr),%r14
adc 8*7($tptr),%r15
adc 8*7($tptr),%r15
adc
%rax
,%rax # top-most carry
adc
\$0
,%rax # top-most carry
mov 32+8(%rsp),%rbx # n0
mov 32+8(%rsp),%rbx # n0
mov 8*8($tptr,%rcx),%rdx # modulo-scheduled "%r8"
mov 8*8($tptr,%rcx),%rdx # modulo-scheduled "%r8"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录