Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
58ae65cd
O
openssl
项目概览
btwise
/
openssl
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
58ae65cd
编写于
10月 21, 2004
作者:
G
Geoff Thorpe
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update ECDSA and ECDH for OPENSSL_NO_ENGINE.
Reported by: Maxim Masiutin Submitted by: Nils Larsch
上级
5b0f1f7d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
30 addition
and
0 deletion
+30
-0
apps/ec.c
apps/ec.c
+4
-0
apps/ecparam.c
apps/ecparam.c
+4
-0
crypto/ecdh/ech_key.c
crypto/ecdh/ech_key.c
+2
-0
crypto/ecdh/ech_lib.c
crypto/ecdh/ech_lib.c
+8
-0
crypto/ecdsa/ecs_lib.c
crypto/ecdsa/ecs_lib.c
+8
-0
crypto/ecdsa/ecs_sign.c
crypto/ecdsa/ecs_sign.c
+2
-0
crypto/ecdsa/ecs_vrf.c
crypto/ecdsa/ecs_vrf.c
+2
-0
未找到文件。
apps/ec.c
浏览文件 @
58ae65cd
...
...
@@ -84,7 +84,9 @@ int MAIN(int, char **);
int
MAIN
(
int
argc
,
char
**
argv
)
{
#ifndef OPENSSL_NO_ENGINE
ENGINE
*
e
=
NULL
;
#endif
int
ret
=
1
;
EC_KEY
*
eckey
=
NULL
;
int
i
,
badops
=
0
;
...
...
@@ -249,7 +251,9 @@ bad:
ERR_load_crypto_strings
();
#ifndef OPENSSL_NO_ENGINE
e
=
setup_engine
(
bio_err
,
engine
,
0
);
#endif
if
(
!
app_passwd
(
bio_err
,
passargin
,
passargout
,
&
passin
,
&
passout
))
{
...
...
apps/ecparam.c
浏览文件 @
58ae65cd
...
...
@@ -127,7 +127,9 @@ int MAIN(int argc, char **argv)
char
*
infile
=
NULL
,
*
outfile
=
NULL
,
*
prog
;
BIO
*
in
=
NULL
,
*
out
=
NULL
;
int
informat
,
outformat
,
noout
=
0
,
C
=
0
,
ret
=
1
;
#ifndef OPENSSL_NO_ENGINE
ENGINE
*
e
=
NULL
;
#endif
char
*
engine
=
NULL
;
BIGNUM
*
ec_p
=
NULL
,
*
ec_a
=
NULL
,
*
ec_b
=
NULL
,
...
...
@@ -335,7 +337,9 @@ bad:
}
}
#ifndef OPENSSL_NO_ENGINE
e
=
setup_engine
(
bio_err
,
engine
,
0
);
#endif
if
(
list_curves
)
{
...
...
crypto/ecdh/ech_key.c
浏览文件 @
58ae65cd
...
...
@@ -68,7 +68,9 @@
*/
#include "ecdh.h"
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
int
ECDH_compute_key
(
void
*
out
,
size_t
outlen
,
const
EC_POINT
*
pub_key
,
EC_KEY
*
eckey
,
void
*
(
*
KDF
)(
void
*
in
,
size_t
inlen
,
void
*
out
,
size_t
outlen
))
...
...
crypto/ecdh/ech_lib.c
浏览文件 @
58ae65cd
...
...
@@ -69,7 +69,9 @@
#include "ecdh.h"
#include <string.h>
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
#include <openssl/err.h>
const
char
*
ECDH_version
=
"ECDH"
OPENSSL_VERSION_PTEXT
;
...
...
@@ -105,11 +107,13 @@ int ECDH_set_method(EC_KEY *eckey, const ECDH_METHOD *meth)
if (mtmp->finish)
mtmp->finish(eckey);
#endif
#ifndef OPENSSL_NO_ENGINE
if
(
ecdh
->
engine
)
{
ENGINE_finish
(
ecdh
->
engine
);
ecdh
->
engine
=
NULL
;
}
#endif
ecdh
->
meth
=
meth
;
#if 0
if (meth->init)
...
...
@@ -139,6 +143,7 @@ ECDH_DATA *ECDH_DATA_new_method(ENGINE *engine)
ret
->
meth
=
ECDH_get_default_method
();
ret
->
engine
=
engine
;
#ifndef OPENSSL_NO_ENGINE
if
(
!
ret
->
engine
)
ret
->
engine
=
ENGINE_get_default_ECDH
();
if
(
ret
->
engine
)
...
...
@@ -152,6 +157,7 @@ ECDH_DATA *ECDH_DATA_new_method(ENGINE *engine)
return
NULL
;
}
}
#endif
ret
->
flags
=
ret
->
meth
->
flags
;
CRYPTO_new_ex_data
(
CRYPTO_EX_INDEX_ECDH
,
ret
,
&
ret
->
ex_data
);
...
...
@@ -172,8 +178,10 @@ void ECDH_DATA_free(ECDH_DATA *r)
if (r->meth->finish)
r->meth->finish(r);
#endif
#ifndef OPENSSL_NO_ENGINE
if
(
r
->
engine
)
ENGINE_finish
(
r
->
engine
);
#endif
CRYPTO_free_ex_data
(
CRYPTO_EX_INDEX_ECDH
,
r
,
&
r
->
ex_data
);
...
...
crypto/ecdsa/ecs_lib.c
浏览文件 @
58ae65cd
...
...
@@ -55,7 +55,9 @@
#include <string.h>
#include "ecdsa.h"
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
#include <openssl/err.h>
#include <openssl/bn.h>
...
...
@@ -92,11 +94,13 @@ int ECDSA_set_method(EC_KEY *eckey, const ECDSA_METHOD *meth)
if (mtmp->finish)
mtmp->finish(eckey);
#endif
#ifndef OPENSSL_NO_ENGINE
if
(
ecdsa
->
engine
)
{
ENGINE_finish
(
ecdsa
->
engine
);
ecdsa
->
engine
=
NULL
;
}
#endif
ecdsa
->
meth
=
meth
;
#if 0
if (meth->init)
...
...
@@ -129,6 +133,7 @@ ECDSA_DATA *ECDSA_DATA_new_method(ENGINE *engine)
ret
->
meth
=
ECDSA_get_default_method
();
ret
->
engine
=
engine
;
#ifndef OPENSSL_NO_ENGINE
if
(
!
ret
->
engine
)
ret
->
engine
=
ENGINE_get_default_ECDSA
();
if
(
ret
->
engine
)
...
...
@@ -142,6 +147,7 @@ ECDSA_DATA *ECDSA_DATA_new_method(ENGINE *engine)
return
NULL
;
}
}
#endif
ret
->
flags
=
ret
->
meth
->
flags
;
CRYPTO_new_ex_data
(
CRYPTO_EX_INDEX_ECDSA
,
ret
,
&
ret
->
ex_data
);
...
...
@@ -167,8 +173,10 @@ void ECDSA_DATA_free(ECDSA_DATA *r)
if (r->meth->finish)
r->meth->finish(r);
#endif
#ifndef OPENSSL_NO_ENGINE
if
(
r
->
engine
)
ENGINE_finish
(
r
->
engine
);
#endif
CRYPTO_free_ex_data
(
CRYPTO_EX_INDEX_ECDSA
,
r
,
&
r
->
ex_data
);
...
...
crypto/ecdsa/ecs_sign.c
浏览文件 @
58ae65cd
...
...
@@ -54,7 +54,9 @@
*/
#include "ecdsa.h"
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
ECDSA_SIG
*
ECDSA_do_sign
(
const
unsigned
char
*
dgst
,
int
dlen
,
EC_KEY
*
eckey
)
{
...
...
crypto/ecdsa/ecs_vrf.c
浏览文件 @
58ae65cd
...
...
@@ -54,7 +54,9 @@
*/
#include "ecdsa.h"
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
/* returns
* 1: correct signature
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录