Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
84948b39
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看板
提交
84948b39
编写于
11月 08, 2006
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix various warnings.
上级
cf32ad7f
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
30 addition
and
12 deletion
+30
-12
crypto/dsa/dsa.h
crypto/dsa/dsa.h
+1
-1
crypto/dsa/dsa_ossl.c
crypto/dsa/dsa_ossl.c
+2
-2
crypto/evp/names.c
crypto/evp/names.c
+0
-3
engines/ccgost/gost2001_keyx.c
engines/ccgost/gost2001_keyx.c
+1
-0
engines/ccgost/gost2001_keyx.h
engines/ccgost/gost2001_keyx.h
+10
-0
engines/ccgost/gost89.c
engines/ccgost/gost89.c
+1
-1
engines/ccgost/gost_ameth.c
engines/ccgost/gost_ameth.c
+3
-1
engines/ccgost/gost_crypt.c
engines/ccgost/gost_crypt.c
+10
-4
engines/ccgost/gost_eng.c
engines/ccgost/gost_eng.c
+2
-0
未找到文件。
crypto/dsa/dsa.h
浏览文件 @
84948b39
...
...
@@ -118,7 +118,7 @@ struct dsa_method
int
(
*
dsa_sign_setup
)(
DSA
*
dsa
,
BN_CTX
*
ctx_in
,
BIGNUM
**
kinvp
,
BIGNUM
**
rp
);
int
(
*
dsa_do_verify
)(
const
unsigned
char
*
dgst
,
int
dgst_len
,
DSA_SIG
*
sig
,
DSA
*
dsa
);
DSA_SIG
*
sig
,
DSA
*
dsa
);
int
(
*
dsa_mod_exp
)(
DSA
*
dsa
,
BIGNUM
*
rr
,
BIGNUM
*
a1
,
BIGNUM
*
p1
,
BIGNUM
*
a2
,
BIGNUM
*
p2
,
BIGNUM
*
m
,
BN_CTX
*
ctx
,
BN_MONT_CTX
*
in_mont
);
...
...
crypto/dsa/dsa_ossl.c
浏览文件 @
84948b39
...
...
@@ -68,7 +68,7 @@
static
DSA_SIG
*
dsa_do_sign
(
const
unsigned
char
*
dgst
,
int
dlen
,
DSA
*
dsa
);
static
int
dsa_sign_setup
(
DSA
*
dsa
,
BN_CTX
*
ctx_in
,
BIGNUM
**
kinvp
,
BIGNUM
**
rp
);
static
int
dsa_do_verify
(
const
unsigned
char
*
dgst
,
int
dgst_len
,
DSA_SIG
*
sig
,
DSA
*
dsa
);
DSA
*
dsa
);
static
int
dsa_init
(
DSA
*
dsa
);
static
int
dsa_finish
(
DSA
*
dsa
);
...
...
@@ -291,7 +291,7 @@ err:
}
static
int
dsa_do_verify
(
const
unsigned
char
*
dgst
,
int
dgst_len
,
DSA_SIG
*
sig
,
DSA
*
dsa
)
DSA
*
dsa
)
{
BN_CTX
*
ctx
;
BIGNUM
u1
,
u2
,
t1
;
...
...
crypto/evp/names.c
浏览文件 @
84948b39
...
...
@@ -62,9 +62,6 @@
#include <openssl/objects.h>
#include <openssl/x509.h>
extern
int
obj_cleanup_defer
;
extern
void
check_defer
(
int
nid
);
int
EVP_add_cipher
(
const
EVP_CIPHER
*
c
)
{
int
r
;
...
...
engines/ccgost/gost2001_keyx.c
浏览文件 @
84948b39
...
...
@@ -16,6 +16,7 @@
#include "e_gost_err.h"
#include "gost_keywrap.h"
#include "gost_lcl.h"
#include "gost2001_keyx.h"
/* Transform ECDH shared key into little endian as required by Cryptocom
* key exchange */
...
...
engines/ccgost/gost2001_keyx.h
0 → 100644
浏览文件 @
84948b39
GOST_KEY_TRANSPORT
*
make_rfc4490_keytransport_2001
(
EVP_PKEY
*
pubk
,
BIGNUM
*
eph_key
,
const
unsigned
char
*
key
,
size_t
keylen
,
unsigned
char
*
ukm
,
size_t
ukm_len
);
int
decrypt_rfc4490_shared_key_2001
(
EVP_PKEY
*
priv
,
GOST_KEY_TRANSPORT
*
gkt
,
unsigned
char
*
key_buf
,
int
key_buf_len
)
;
engines/ccgost/gost89.c
浏览文件 @
84948b39
...
...
@@ -114,7 +114,7 @@ const byte CryptoProKeyMeshingKey[]={
0xC0
,
0x86
,
0xDC
,
0xC2
,
0xEF
,
0x4C
,
0xA9
,
0x2B
};
/* Initialization of gost_ctx subst blocks*/
void
kboxinit
(
gost_ctx
*
c
,
const
gost_subst_block
*
b
)
static
void
kboxinit
(
gost_ctx
*
c
,
const
gost_subst_block
*
b
)
{
int
i
;
...
...
engines/ccgost/gost_ameth.c
浏览文件 @
84948b39
...
...
@@ -98,11 +98,13 @@ static int decode_gost_algor_params(EVP_PKEY *pkey, X509_ALGOR *palg)
ASN1_OBJECT
*
palg_obj
=
NULL
;
int
ptype
=
V_ASN1_UNDEF
;
int
pkey_nid
=
NID_undef
,
param_nid
=
NID_undef
;
void
*
_pval
;
ASN1_STRING
*
pval
=
NULL
;
const
unsigned
char
*
p
;
GOST_KEY_PARAMS
*
gkp
=
NULL
;
X509_ALGOR_get0
(
&
palg_obj
,
&
ptype
,
(
void
**
)
(
&
pval
),
palg
);
X509_ALGOR_get0
(
&
palg_obj
,
&
ptype
,
&
_pval
,
palg
);
pval
=
_pval
;
if
(
ptype
!=
V_ASN1_SEQUENCE
)
{
GOSTerr
(
GOST_F_DECODE_GOST_ALGOR_PARAMS
,
...
...
engines/ccgost/gost_crypt.c
浏览文件 @
84948b39
...
...
@@ -197,7 +197,7 @@ const struct gost_cipher_info *get_encryption_params(ASN1_OBJECT *obj)
}
/* Sets cipher param from paramset NID. */
int
gost_cipher_set_param
(
struct
ossl_gost_cipher_ctx
*
c
,
int
nid
)
static
int
gost_cipher_set_param
(
struct
ossl_gost_cipher_ctx
*
c
,
int
nid
)
{
const
struct
gost_cipher_info
*
param
;
param
=
get_encryption_params
((
nid
==
NID_undef
?
NULL
:
OBJ_nid2obj
(
nid
)));
...
...
@@ -226,8 +226,9 @@ static int gost_cipher_init_param(EVP_CIPHER_CTX *ctx, const unsigned char *key,
return
1
;
}
#ifdef USE_SSL
/* Initializes EVP_CIPHER_CTX with fixed cryptopro A paramset */
int
gost_cipher_init_cpa
(
EVP_CIPHER_CTX
*
ctx
,
const
unsigned
char
*
key
,
static
int
gost_cipher_init_cpa
(
EVP_CIPHER_CTX
*
ctx
,
const
unsigned
char
*
key
,
const
unsigned
char
*
iv
,
int
enc
)
{
struct
ossl_gost_cipher_ctx
*
c
=
ctx
->
cipher_data
;
...
...
@@ -241,7 +242,7 @@ int gost_cipher_init_cpa(EVP_CIPHER_CTX *ctx, const unsigned char *key,
}
/* Initializes EVP_CIPHER_CTX with fixed vizir paramset */
int
gost_cipher_init_vizir
(
EVP_CIPHER_CTX
*
ctx
,
const
unsigned
char
*
key
,
static
int
gost_cipher_init_vizir
(
EVP_CIPHER_CTX
*
ctx
,
const
unsigned
char
*
key
,
const
unsigned
char
*
iv
,
int
enc
)
{
struct
ossl_gost_cipher_ctx
*
c
=
ctx
->
cipher_data
;
...
...
@@ -254,6 +255,7 @@ int gost_cipher_init_vizir(EVP_CIPHER_CTX *ctx, const unsigned char *key,
memcpy
(
ctx
->
iv
,
ctx
->
oiv
,
EVP_CIPHER_CTX_iv_length
(
ctx
));
return
1
;
}
#endif
/* def USE_SSL */
/* Initializes EVP_CIPHER_CTX with default values */
int
gost_cipher_init
(
EVP_CIPHER_CTX
*
ctx
,
const
unsigned
char
*
key
,
...
...
@@ -275,6 +277,7 @@ static void gost_crypt_mesh (void *ctx,unsigned char *iv,unsigned char *buf)
c
->
count
+=
8
;
}
#ifdef USE_SSL
static
void
gost_cnt_next
(
void
*
ctx
,
unsigned
char
*
iv
,
unsigned
char
*
buf
)
{
struct
ossl_gost_cipher_ctx
*
c
=
ctx
;
...
...
@@ -305,6 +308,7 @@ static void gost_cnt_next (void *ctx, unsigned char *iv, unsigned char *buf)
gostcrypt
(
&
(
c
->
cctx
),
buf1
,
buf
);
c
->
count
+=
8
;
}
#endif
/* def USE_SSL */
/* GOST encryption in CFB mode */
int
gost_cipher_do_cfb
(
EVP_CIPHER_CTX
*
ctx
,
unsigned
char
*
out
,
...
...
@@ -369,7 +373,8 @@ int gost_cipher_do_cfb(EVP_CIPHER_CTX *ctx, unsigned char *out,
return
1
;
}
int
gost_cipher_do_cnt
(
EVP_CIPHER_CTX
*
ctx
,
unsigned
char
*
out
,
#if USE_SSL
static
int
gost_cipher_do_cnt
(
EVP_CIPHER_CTX
*
ctx
,
unsigned
char
*
out
,
const
unsigned
char
*
in
,
unsigned
int
inl
)
{
const
unsigned
char
*
in_ptr
=
in
;
...
...
@@ -422,6 +427,7 @@ int gost_cipher_do_cnt(EVP_CIPHER_CTX *ctx, unsigned char *out,
}
return
1
;
}
#endif
/* def USE_SSL */
/* Cleaning up of EVP_CIPHER_CTX */
int
gost_cipher_cleanup
(
EVP_CIPHER_CTX
*
ctx
)
...
...
engines/ccgost/gost_eng.c
浏览文件 @
84948b39
...
...
@@ -141,8 +141,10 @@ static int bind_gost (ENGINE *e,const char *id)
return
ret
;
}
#ifdef ENGINE_DYNAMIC_SUPPORT
IMPLEMENT_DYNAMIC_BIND_FN
(
bind_gost
)
IMPLEMENT_DYNAMIC_CHECK_FN
()
#endif
/* def ENGINE_DYNAMIC_SUPPORT */
static
int
gost_digests
(
ENGINE
*
e
,
const
EVP_MD
**
digest
,
const
int
**
nids
,
int
nid
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录