Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
5f132a03
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
11 个月 前同步成功
通知
8
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5f132a03
编写于
10月 20, 2011
作者:
A
Andy Polyakov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fips/fips_[canister|premain].c: make it work with VC6 and add sentinels
even to code segments.
上级
d528caa7
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
22 addition
and
6 deletion
+22
-6
fips/fips_canister.c
fips/fips_canister.c
+17
-3
fips/fips_premain.c
fips/fips_premain.c
+2
-1
fips/fips_premain.c.sha1
fips/fips_premain.c.sha1
+1
-1
fips/fipssyms.h
fips/fipssyms.h
+2
-1
未找到文件。
fips/fips_canister.c
浏览文件 @
5f132a03
...
...
@@ -60,7 +60,13 @@ static void *instruction_pointer_xlc(void);
* big-endian encoded variable names, just to prevent these arrays
* from being merged by linker. */
# if defined(_MSC_VER)
# pragma section("fipsro$a",read)
# pragma code_seg("fipstx")
# pragma code_seg()
__declspec
(
allocate
(
"fipstx"
))
const
unsigned
int
FIPS_text_startX
[]
=
{
0x46495053
,
0x5f746578
,
0x745f7374
,
0x61727458
};
# pragma const_seg("fipsro$a")
# pragma const_seg()
__declspec
(
allocate
(
"fipsro$a"
))
# endif
const
unsigned
int
FIPS_rodata_start
[]
=
...
...
@@ -71,13 +77,20 @@ const unsigned int FIPS_rodata_start[]=
# define instruction_pointer FIPS_text_endX
# endif
# if defined(_MSC_VER)
# pragma section("fipsro$c",read)
__declspec
(
allocate
(
"fipsro$c"
))
# pragma code_seg("fipstx$z")
# pragma code_seg()
__declspec
(
allocate
(
"fipstx$z"
))
const
unsigned
int
FIPS_text_endX
[]
=
{
0x46495053
,
0x5f746578
,
0x745f656e
,
0x64585b5d
};
# pragma const_seg("fipsro$z")
# pragma const_seg()
__declspec
(
allocate
(
"fipsro$z"
))
# endif
const
unsigned
int
FIPS_rodata_end
[]
=
{
0x46495053
,
0x5f726f64
,
0x6174615f
,
0x656e645b
};
#endif
#if !defined(_MSC_VER) || !defined(instruction_pointer)
/*
* I declare reference function as static in order to avoid certain
* pitfalls in -dynamic linker behaviour...
...
...
@@ -159,6 +172,7 @@ static void *instruction_pointer(void)
#endif
return
ret
;
}
#endif
/*
* This function returns pointer to an instruction in the vicinity of
...
...
fips/fips_premain.c
浏览文件 @
5f132a03
...
...
@@ -69,7 +69,8 @@
#endif
#if defined(_MSC_VER)
# pragma section("fipsro",read)
# pragma const_seg("fipsro")
# pragma const_seg()
__declspec
(
allocate
(
"fipsro"
))
#endif
static
const
unsigned
char
FINGERPRINT_ascii_value
[
41
]
=
HMAC_SHA1_SIG
;
...
...
fips/fips_premain.c.sha1
浏览文件 @
5f132a03
HMAC-SHA1(fips_premain.c)=
3b8c0f293cb26288698881095a7be2e2fc24ea6b
HMAC-SHA1(fips_premain.c)=
a401afd9c2b57f0f11d2b34b6d0c9815b1fe6a66
fips/fipssyms.h
浏览文件 @
5f132a03
...
...
@@ -669,7 +669,8 @@
#define bn_gather5 fips_bn_gather5
#if defined(_MSC_VER)
# pragma section("fipsro$b",read)
# pragma const_seg("fipsro$b")
# pragma const_seg()
# define __fips_constseg __declspec(allocate("fipsro$b"))
#else
# define __fips_constseg
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录