Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
45771abb
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看板
提交
45771abb
编写于
8月 03, 2005
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
PIC-ify SPARC assembler in alternative manner to eliminate dependency on
OPENSSL_PIC macro.
上级
573969cd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
45 addition
and
39 deletion
+45
-39
crypto/des/asm/des_enc.m4
crypto/des/asm/des_enc.m4
+45
-39
未找到文件。
crypto/des/asm/des_enc.m4
浏览文件 @
45771abb
...
...
@@ -43,7 +43,7 @@
! 100% faster than gcc-3.2.1 -m64 -mcpu=ultrasparc -O5
!
.ident "des_enc.m4 2.
0
"
.ident "des_enc.m4 2.
1
"
#if defined(__SUNPRO_C) && defined(__sparcv9)
# define ABI64 /* They've said -xarch=v9 at command line */
...
...
@@ -1424,44 +1424,6 @@ DES_decrypt3:
.DES_decrypt3.end:
.size DES_decrypt3,.DES_decrypt3.end-DES_decrypt3
! input: out0 offset between .PIC.me.up and caller
! output: out0 pointer to .PIC.me.up
! out2 pointer to .des_and
! global1 pointer to DES_SPtrans
.align 32
.PIC.me.up:
add out0,%o7,out0 ! pointer to .PIC.me.up
#ifdef OPENSSL_PIC
! In case anybody wonders why this code is same for both ABI.
! To start with it is not. Do note LDPTR below. But of course
! you must be wondering why the rest of it does not contain
! things like %hh, %hm and %lm. Well, those are needed only
! if OpenSSL library *itself* will become larger than 4GB,
! which is not going to happen any time soon.
sethi %hi(DES_SPtrans),global1
or global1,%lo(DES_SPtrans),global1
sethi %hi(_GLOBAL_OFFSET_TABLE_-(.PIC.me.up-.)),out2
add global1,out0,global1
add out2,%lo(_GLOBAL_OFFSET_TABLE_-(.PIC.me.up-.)),out2
LDPTR [out2+global1],global1
#elif 0
setn DES_SPtrans,out2,global1 ! synthetic instruction !
#elif defined(ABI64)
sethi %hh(DES_SPtrans),out2
or out2,%hm(DES_SPtrans),out2
sethi %lm(DES_SPtrans),global1
or global1,%lo(DES_SPtrans),global1
sllx out2,32,out2
or out2,global1,global1
#else
sethi %hi(DES_SPtrans),global1
or global1,%lo(DES_SPtrans),global1
#endif
retl
add out0,.des_and-.PIC.me.up,out2
.align 256
.type .des_and,#object
.size .des_and,284
...
...
@@ -1516,6 +1478,50 @@ DES_decrypt3:
.word 0 ! 276
.word LOOPS ! 280
.word 0x0000FC00 ! 284
.PIC.DES_SPtrans:
.word %r_disp32(DES_SPtrans)
! input: out0 offset between .PIC.me.up and caller
! output: out0 pointer to .PIC.me.up
! out2 pointer to .des_and
! global1 pointer to DES_SPtrans
.align 32
.PIC.me.up:
add out0,%o7,out0 ! pointer to .PIC.me.up
#if 1
ld [out0+(.PIC.DES_SPtrans-.PIC.me.up)],global1
add global1,(.PIC.DES_SPtrans-.PIC.me.up),global1
add global1,out0,global1
#else
# ifdef OPENSSL_PIC
! In case anybody wonders why this code is same for both ABI.
! To start with it is not. Do note LDPTR below. But of course
! you must be wondering why the rest of it does not contain
! things like %hh, %hm and %lm. Well, those are needed only
! if OpenSSL library *itself* will become larger than 4GB,
! which is not going to happen any time soon.
sethi %hi(DES_SPtrans),global1
or global1,%lo(DES_SPtrans),global1
sethi %hi(_GLOBAL_OFFSET_TABLE_-(.PIC.me.up-.)),out2
add global1,out0,global1
add out2,%lo(_GLOBAL_OFFSET_TABLE_-(.PIC.me.up-.)),out2
LDPTR [out2+global1],global1
# elif 0
setn DES_SPtrans,out2,global1 ! synthetic instruction !
# elif defined(ABI64)
sethi %hh(DES_SPtrans),out2
or out2,%hm(DES_SPtrans),out2
sethi %lm(DES_SPtrans),global1
or global1,%lo(DES_SPtrans),global1
sllx out2,32,out2
or out2,global1,global1
# else
sethi %hi(DES_SPtrans),global1
or global1,%lo(DES_SPtrans),global1
# endif
#endif
retl
add out0,.des_and-.PIC.me.up,out2
! void DES_ncbc_encrypt(input, output, length, schedule, ivec, enc)
! *****************************************************************
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录