Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
a58a6368
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看板
提交
a58a6368
编写于
4月 09, 2006
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Constification.
上级
9fdab72d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
24 deletion
+24
-24
crypto/evp/evp.h
crypto/evp/evp.h
+6
-6
crypto/evp/evp_locl.h
crypto/evp/evp_locl.h
+7
-7
crypto/evp/pmeth_fn.c
crypto/evp/pmeth_fn.c
+6
-6
crypto/rsa/rsa_pmeth.c
crypto/rsa/rsa_pmeth.c
+5
-5
未找到文件。
crypto/evp/evp.h
浏览文件 @
a58a6368
...
...
@@ -931,23 +931,23 @@ int EVP_PKEY_CTX_ctrl_str(EVP_PKEY_CTX *ctx, const char *type,
int
EVP_PKEY_sign_init
(
EVP_PKEY_CTX
*
ctx
);
int
EVP_PKEY_sign
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
*
siglen
,
unsigned
char
*
tbs
,
int
tbslen
);
const
unsigned
char
*
tbs
,
int
tbslen
);
int
EVP_PKEY_verify_init
(
EVP_PKEY_CTX
*
ctx
);
int
EVP_PKEY_verify
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
siglen
,
unsigned
char
*
tbs
,
int
tbslen
);
const
unsigned
char
*
sig
,
int
siglen
,
const
unsigned
char
*
tbs
,
int
tbslen
);
int
EVP_PKEY_verify_recover_init
(
EVP_PKEY_CTX
*
ctx
);
int
EVP_PKEY_verify_recover
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
rout
,
int
*
routlen
,
unsigned
char
*
sig
,
int
siglen
);
const
unsigned
char
*
sig
,
int
siglen
);
int
EVP_PKEY_encrypt_init
(
EVP_PKEY_CTX
*
ctx
);
int
EVP_PKEY_encrypt
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
);
const
unsigned
char
*
in
,
int
inlen
);
int
EVP_PKEY_decrypt_init
(
EVP_PKEY_CTX
*
ctx
);
int
EVP_PKEY_decrypt
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
);
const
unsigned
char
*
in
,
int
inlen
);
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
...
...
crypto/evp/evp_locl.h
浏览文件 @
a58a6368
...
...
@@ -264,32 +264,32 @@ struct evp_pkey_method_st
int
(
*
sign_init
)(
EVP_PKEY_CTX
*
ctx
);
int
(
*
sign
)(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
*
siglen
,
unsigned
char
*
tbs
,
int
tbslen
);
const
unsigned
char
*
tbs
,
int
tbslen
);
int
(
*
verify_init
)(
EVP_PKEY_CTX
*
ctx
);
int
(
*
verify
)(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
siglen
,
unsigned
char
*
tbs
,
int
tbslen
);
int
(
*
verify
)(
EVP_PKEY_CTX
*
ctx
,
const
unsigned
char
*
sig
,
int
siglen
,
const
unsigned
char
*
tbs
,
int
tbslen
);
int
(
*
verify_recover_init
)(
EVP_PKEY_CTX
*
ctx
);
int
(
*
verify_recover
)(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
rout
,
int
*
routlen
,
unsigned
char
*
sig
,
int
siglen
);
const
unsigned
char
*
sig
,
int
siglen
);
int
(
*
signctx_init
)(
EVP_PKEY_CTX
*
ctx
,
EVP_MD_CTX
*
mctx
);
int
(
*
signctx
)(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
*
siglen
,
EVP_MD_CTX
*
mctx
);
int
(
*
verifyctx_init
)(
EVP_PKEY_CTX
*
ctx
,
EVP_MD_CTX
*
mctx
);
int
(
*
verifyctx
)(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
siglen
,
int
(
*
verifyctx
)(
EVP_PKEY_CTX
*
ctx
,
const
unsigned
char
*
sig
,
int
siglen
,
EVP_MD_CTX
*
mctx
);
int
(
*
encrypt_init
)(
EVP_PKEY_CTX
*
ctx
);
int
(
*
encrypt
)(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
);
const
unsigned
char
*
in
,
int
inlen
);
int
(
*
decrypt_init
)(
EVP_PKEY_CTX
*
ctx
);
int
(
*
decrypt
)(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
);
const
unsigned
char
*
in
,
int
inlen
);
int
(
*
ctrl
)(
EVP_PKEY_CTX
*
ctx
,
int
type
,
int
p1
,
void
*
p2
);
int
(
*
ctrl_str
)(
EVP_PKEY_CTX
*
ctx
,
const
char
*
type
,
const
char
*
value
);
...
...
crypto/evp/pmeth_fn.c
浏览文件 @
a58a6368
...
...
@@ -83,7 +83,7 @@ int EVP_PKEY_sign_init(EVP_PKEY_CTX *ctx)
int
EVP_PKEY_sign
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
*
siglen
,
unsigned
char
*
tbs
,
int
tbslen
)
const
unsigned
char
*
tbs
,
int
tbslen
)
{
if
(
!
ctx
||
!
ctx
->
pmeth
||
!
ctx
->
pmeth
->
sign
)
{
...
...
@@ -118,8 +118,8 @@ int EVP_PKEY_verify_init(EVP_PKEY_CTX *ctx)
}
int
EVP_PKEY_verify
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
siglen
,
unsigned
char
*
tbs
,
int
tbslen
)
const
unsigned
char
*
sig
,
int
siglen
,
const
unsigned
char
*
tbs
,
int
tbslen
)
{
if
(
!
ctx
||
!
ctx
->
pmeth
||
!
ctx
->
pmeth
->
verify
)
{
...
...
@@ -155,7 +155,7 @@ int EVP_PKEY_verify_recover_init(EVP_PKEY_CTX *ctx)
int
EVP_PKEY_verify_recover
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
rout
,
int
*
routlen
,
unsigned
char
*
sig
,
int
siglen
)
const
unsigned
char
*
sig
,
int
siglen
)
{
if
(
!
ctx
||
!
ctx
->
pmeth
||
!
ctx
->
pmeth
->
verify_recover
)
{
...
...
@@ -191,7 +191,7 @@ int EVP_PKEY_encrypt_init(EVP_PKEY_CTX *ctx)
int
EVP_PKEY_encrypt
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
)
const
unsigned
char
*
in
,
int
inlen
)
{
if
(
!
ctx
||
!
ctx
->
pmeth
||
!
ctx
->
pmeth
->
encrypt
)
{
...
...
@@ -227,7 +227,7 @@ int EVP_PKEY_decrypt_init(EVP_PKEY_CTX *ctx)
int
EVP_PKEY_decrypt
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
)
const
unsigned
char
*
in
,
int
inlen
)
{
if
(
!
ctx
||
!
ctx
->
pmeth
||
!
ctx
->
pmeth
->
decrypt
)
{
...
...
crypto/rsa/rsa_pmeth.c
浏览文件 @
a58a6368
...
...
@@ -65,7 +65,7 @@
extern
int
int_rsa_verify
(
int
dtype
,
const
unsigned
char
*
m
,
unsigned
int
m_len
,
unsigned
char
*
rm
,
unsigned
int
*
prm_len
,
unsigned
char
*
sigbuf
,
unsigned
int
siglen
,
const
unsigned
char
*
sigbuf
,
unsigned
int
siglen
,
RSA
*
rsa
);
/* RSA pkey context structure */
...
...
@@ -124,7 +124,7 @@ static void pkey_rsa_cleanup(EVP_PKEY_CTX *ctx)
}
static
int
pkey_rsa_sign
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
*
siglen
,
unsigned
char
*
tbs
,
int
tbslen
)
const
unsigned
char
*
tbs
,
int
tbslen
)
{
int
ret
;
RSA_PKEY_CTX
*
rctx
=
ctx
->
data
;
...
...
@@ -163,7 +163,7 @@ static int pkey_rsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, int *siglen,
static
int
pkey_rsa_verifyrecover
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
sig
,
int
*
siglen
,
unsigned
char
*
tbs
,
int
tbslen
)
const
unsigned
char
*
tbs
,
int
tbslen
)
{
int
ret
;
RSA_PKEY_CTX
*
rctx
=
ctx
->
data
;
...
...
@@ -207,7 +207,7 @@ static int pkey_rsa_verifyrecover(EVP_PKEY_CTX *ctx,
}
static
int
pkey_rsa_encrypt
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
)
const
unsigned
char
*
in
,
int
inlen
)
{
int
ret
;
RSA_PKEY_CTX
*
rctx
=
ctx
->
data
;
...
...
@@ -220,7 +220,7 @@ static int pkey_rsa_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out, int *outlen,
}
static
int
pkey_rsa_decrypt
(
EVP_PKEY_CTX
*
ctx
,
unsigned
char
*
out
,
int
*
outlen
,
unsigned
char
*
in
,
int
inlen
)
const
unsigned
char
*
in
,
int
inlen
)
{
int
ret
;
RSA_PKEY_CTX
*
rctx
=
ctx
->
data
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录