Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
622a531c
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
622a531c
编写于
2月 13, 2016
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chacha/asm/chacha*: ensure that zero length is handled (without crash).
RT#4305 Reviewed-by:
N
Rich Salz
<
rsalz@openssl.org
>
上级
29880e97
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
0 deletion
+16
-0
crypto/chacha/asm/chacha-armv4.pl
crypto/chacha/asm/chacha-armv4.pl
+7
-0
crypto/chacha/asm/chacha-s390x.pl
crypto/chacha/asm/chacha-s390x.pl
+2
-0
crypto/chacha/asm/chacha-x86.pl
crypto/chacha/asm/chacha-x86.pl
+4
-0
crypto/chacha/asm/chacha-x86_64.pl
crypto/chacha/asm/chacha-x86_64.pl
+3
-0
未找到文件。
crypto/chacha/asm/chacha-armv4.pl
浏览文件 @
622a531c
...
...
@@ -200,6 +200,12 @@ ChaCha20_ctr32:
#else
adr r14,.LChaCha20_ctr32
#endif
cmp r2,#0 @ len==0?
#ifdef __thumb2__
itt eq
#endif
addeq sp,sp,#4*3
beq .Lno_data
#if __ARM_MAX_ARCH__>=7
cmp r2,#192 @ test len
bls .Lshort
...
...
@@ -605,6 +611,7 @@ $code.=<<___;
.Ldone:
add sp,sp,#4*(32+3)
.Lno_data:
ldmia sp!,{r4-r11,pc}
.size ChaCha20_ctr32,.-ChaCha20_ctr32
___
...
...
crypto/chacha/asm/chacha-s390x.pl
浏览文件 @
622a531c
...
...
@@ -140,6 +140,7 @@ $code.=<<___;
.type ChaCha20_ctr32,\@function
.align 32
ChaCha20_ctr32:
cl${g}ije $len,0,.Lno_data # $len==0?
a${g}hi $len,-64
l${g}hi %r1,-$frame
stm${g} %r6,%r15,`6*$SIZE_T`($sp)
...
...
@@ -271,6 +272,7 @@ $code.=<<___;
stmg %r0,%r3,$stdframe+4*12($sp)
lm${g} %r6,%r15,`$frame+6*$SIZE_T`($sp)
.Lno_data:
br %r14
.align 16
...
...
crypto/chacha/asm/chacha-x86.pl
浏览文件 @
622a531c
...
...
@@ -123,6 +123,9 @@ my ($ap,$bp,$cp,$dp)=map(($_&~3)+(($_-1)&3),($ai,$bi,$ci,$di)); # previous
&static_label
("
pic_point
");
&function_begin
("
ChaCha20_ctr32
");
&xor
("
eax
","
eax
");
&cmp
("
eax
",
&wparam
(
2
));
# len==0?
&je
(
&label
("
no_data
"));
if
(
$xmm
)
{
&call
(
&label
("
pic_point
"));
&set_label
("
pic_point
");
...
...
@@ -356,6 +359,7 @@ if ($xmm) {
&set_label
("
done
");
&stack_pop
(
33
);
&set_label
("
no_data
");
&function_end
("
ChaCha20_ctr32
");
if
(
$xmm
)
{
...
...
crypto/chacha/asm/chacha-x86_64.pl
浏览文件 @
622a531c
...
...
@@ -219,6 +219,8 @@ $code.=<<___;
.type ChaCha20_ctr32,\@function,5
.align 64
ChaCha20_ctr32:
cmp \$0,$len
je .Lno_data
mov OPENSSL_ia32cap_P+4(%rip),%r10
test \$`1<<(41-32)`,%r10d
jnz .LChaCha20_ssse3
...
...
@@ -375,6 +377,7 @@ $code.=<<___;
pop %r12
pop %rbp
pop %rbx
.Lno_data:
ret
.size ChaCha20_ctr32,.-ChaCha20_ctr32
___
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录