Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
744ecaa5
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
大约 1 年 前同步成功
通知
9
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,发现更多精彩内容 >>
提交
744ecaa5
编写于
1月 04, 2008
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid WIN32 signed/unsigned warnings.
上级
76d761cc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
7 addition
and
8 deletion
+7
-8
engines/ccgost/gost89.c
engines/ccgost/gost89.c
+2
-2
engines/ccgost/gost_crypt.c
engines/ccgost/gost_crypt.c
+4
-4
engines/ccgost/gost_lcl.h
engines/ccgost/gost_lcl.h
+0
-1
engines/ccgost/gosthash.c
engines/ccgost/gosthash.c
+1
-1
未找到文件。
engines/ccgost/gost89.c
浏览文件 @
744ecaa5
...
...
@@ -354,7 +354,7 @@ int gost_mac(gost_ctx *ctx,int mac_len,const unsigned char *data,
{
byte
buffer
[
8
]
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
byte
buf2
[
8
];
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
+
8
<=
data_len
;
i
+=
8
)
mac_block
(
ctx
,
buffer
,
data
+
i
);
if
(
i
<
data_len
)
...
...
@@ -373,7 +373,7 @@ int gost_mac_iv(gost_ctx *ctx,int mac_len,const unsigned char *iv,const unsigned
{
byte
buffer
[
8
];
byte
buf2
[
8
];
int
i
;
unsigned
int
i
;
memcpy
(
buffer
,
iv
,
8
);
for
(
i
=
0
;
i
+
8
<=
data_len
;
i
+=
8
)
mac_block
(
ctx
,
buffer
,
data
+
i
);
...
...
engines/ccgost/gost_crypt.c
浏览文件 @
744ecaa5
...
...
@@ -251,8 +251,8 @@ int gost_cipher_do_cfb(EVP_CIPHER_CTX *ctx, unsigned char *out,
{
const
unsigned
char
*
in_ptr
=
in
;
unsigned
char
*
out_ptr
=
out
;
int
i
=
0
;
int
j
=
0
;
unsigned
int
i
=
0
;
unsigned
int
j
=
0
;
/* process partial block if any */
if
(
ctx
->
num
)
{
...
...
@@ -313,8 +313,8 @@ static int gost_cipher_do_cnt(EVP_CIPHER_CTX *ctx, unsigned char *out,
{
const
unsigned
char
*
in_ptr
=
in
;
unsigned
char
*
out_ptr
=
out
;
int
i
=
0
;
int
j
;
unsigned
int
i
=
0
;
unsigned
int
j
;
/* process partial block if any */
if
(
ctx
->
num
)
{
...
...
engines/ccgost/gost_lcl.h
浏览文件 @
744ecaa5
...
...
@@ -16,7 +16,6 @@
#include <openssl/x509.h>
#include <openssl/engine.h>
#include <openssl/ec.h>
#include <unistd.h>
#include "gost89.h"
#include "gosthash.h"
/* Control commands */
...
...
engines/ccgost/gosthash.c
浏览文件 @
744ecaa5
...
...
@@ -185,7 +185,7 @@ int hash_block(gost_hash_ctx *ctx,const byte *block, size_t length)
if
(
ctx
->
left
)
{
/*There are some bytes from previous step*/
int
add_bytes
=
32
-
ctx
->
left
;
unsigned
int
add_bytes
=
32
-
ctx
->
left
;
if
(
add_bytes
>
length
)
{
add_bytes
=
length
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录