Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
63ba7582
T
Third Party Zlib
项目概览
OpenHarmony
/
Third Party Zlib
接近 2 年 前同步成功
通知
18
Star
112
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Zlib
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
63ba7582
编写于
11月 30, 2012
作者:
T
takacsd
提交者:
Mark Adler
2月 23, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix types in contrib/minizip to match result of get_crc_table().
上级
00dfee0b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
contrib/minizip/crypt.h
contrib/minizip/crypt.h
+4
-4
contrib/minizip/unzip.c
contrib/minizip/unzip.c
+1
-1
contrib/minizip/zip.c
contrib/minizip/zip.c
+1
-1
未找到文件。
contrib/minizip/crypt.h
浏览文件 @
63ba7582
...
...
@@ -32,7 +32,7 @@
/***********************************************************************
* Return the next byte in the pseudo-random sequence
*/
static
int
decrypt_byte
(
unsigned
long
*
pkeys
,
const
unsigned
long
*
pcrc_32_tab
)
static
int
decrypt_byte
(
unsigned
long
*
pkeys
,
const
z_crc_t
*
pcrc_32_tab
)
{
unsigned
temp
;
/* POTENTIAL BUG: temp*(temp^1) may overflow in an
* unpredictable manner on 16-bit systems; not a problem
...
...
@@ -45,7 +45,7 @@ static int decrypt_byte(unsigned long* pkeys, const unsigned long* pcrc_32_tab)
/***********************************************************************
* Update the encryption keys with the next byte of plain text
*/
static
int
update_keys
(
unsigned
long
*
pkeys
,
const
unsigned
long
*
pcrc_32_tab
,
int
c
)
static
int
update_keys
(
unsigned
long
*
pkeys
,
const
z_crc_t
*
pcrc_32_tab
,
int
c
)
{
(
*
(
pkeys
+
0
))
=
CRC32
((
*
(
pkeys
+
0
)),
c
);
(
*
(
pkeys
+
1
))
+=
(
*
(
pkeys
+
0
))
&
0xff
;
...
...
@@ -62,7 +62,7 @@ static int update_keys(unsigned long* pkeys,const unsigned long* pcrc_32_tab,int
* Initialize the encryption keys and the random header according to
* the given password.
*/
static
void
init_keys
(
const
char
*
passwd
,
unsigned
long
*
pkeys
,
const
unsigned
long
*
pcrc_32_tab
)
static
void
init_keys
(
const
char
*
passwd
,
unsigned
long
*
pkeys
,
const
z_crc_t
*
pcrc_32_tab
)
{
*
(
pkeys
+
0
)
=
305419896L
;
*
(
pkeys
+
1
)
=
591751049L
;
...
...
@@ -91,7 +91,7 @@ static int crypthead(const char* passwd, /* password string */
unsigned
char
*
buf
,
/* where to write header */
int
bufSize
,
unsigned
long
*
pkeys
,
const
unsigned
long
*
pcrc_32_tab
,
const
z_crc_t
*
pcrc_32_tab
,
unsigned
long
crcForCrypting
)
{
int
n
;
/* index in random header */
...
...
contrib/minizip/unzip.c
浏览文件 @
63ba7582
...
...
@@ -188,7 +188,7 @@ typedef struct
# ifndef NOUNCRYPT
unsigned
long
keys
[
3
];
/* keys defining the pseudo-random sequence */
const
unsigned
long
*
pcrc_32_tab
;
const
z_crc_t
*
pcrc_32_tab
;
# endif
}
unz64_s
;
...
...
contrib/minizip/zip.c
浏览文件 @
63ba7582
...
...
@@ -157,7 +157,7 @@ typedef struct
ZPOS64_T
totalUncompressedData
;
#ifndef NOCRYPT
unsigned
long
keys
[
3
];
/* keys defining the pseudo-random sequence */
const
unsigned
long
*
pcrc_32_tab
;
const
z_crc_t
*
pcrc_32_tab
;
int
crypt_header_size
;
#endif
}
curfile64_info
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录