Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
62f29eb1
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看板
提交
62f29eb1
编写于
5月 23, 2011
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
spacrv9cap.c: addenum to recent EC optimizations.
上级
f8501464
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
3 deletion
+4
-3
crypto/ec/ec_cvt.c
crypto/ec/ec_cvt.c
+2
-2
crypto/sparcv9cap.c
crypto/sparcv9cap.c
+2
-1
未找到文件。
crypto/ec/ec_cvt.c
浏览文件 @
62f29eb1
...
...
@@ -80,7 +80,7 @@ EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM
const
EC_METHOD
*
meth
;
EC_GROUP
*
ret
;
#if defined(OPENSSL_BN_ASM_MONT)
&& !defined(__sparc)
#if defined(OPENSSL_BN_ASM_MONT)
/*
* This might appear controversial, but the fact is that generic
* prime method was observed to deliver better performance even
...
...
@@ -93,7 +93,7 @@ EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a, const BIGNUM
* arguable, because the dependency of improvement coefficient
* from key length is not a "monotone" curve. For example while
* 571-bit result is 23% on ARM, 384-bit one is -1%. But it's
* generally faster, sometimes "respectfully" faster,
or
* generally faster, sometimes "respectfully" faster,
sometimes
* "tolerably" slower... What effectively happens is that loop
* with bn_mul_add_words is put against bn_mul_mont, and the
* latter "wins" on short vectors. Correct solution should be
...
...
crypto/sparcv9cap.c
浏览文件 @
62f29eb1
...
...
@@ -20,7 +20,8 @@ int bn_mul_mont(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_U
int
bn_mul_mont_fpu
(
BN_ULONG
*
rp
,
const
BN_ULONG
*
ap
,
const
BN_ULONG
*
bp
,
const
BN_ULONG
*
np
,
const
BN_ULONG
*
n0
,
int
num
);
int
bn_mul_mont_int
(
BN_ULONG
*
rp
,
const
BN_ULONG
*
ap
,
const
BN_ULONG
*
bp
,
const
BN_ULONG
*
np
,
const
BN_ULONG
*
n0
,
int
num
);
if
((
OPENSSL_sparcv9cap_P
&
(
SPARCV9_PREFER_FPU
|
SPARCV9_VIS1
))
==
if
(
num
>=
8
&&
!
(
num
&
1
)
&&
(
OPENSSL_sparcv9cap_P
&
(
SPARCV9_PREFER_FPU
|
SPARCV9_VIS1
))
==
(
SPARCV9_PREFER_FPU
|
SPARCV9_VIS1
))
return
bn_mul_mont_fpu
(
rp
,
ap
,
bp
,
np
,
n0
,
num
);
else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录