Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
770d19b8
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看板
提交
770d19b8
编写于
25年前
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New RSA flag RSA_FLAG_EXT_PKEY, to always call rsa_mod_exp.
上级
5965902e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
23 addition
and
8 deletion
+23
-8
CHANGES
CHANGES
+9
-0
STATUS
STATUS
+1
-3
crypto/rsa/rsa.h
crypto/rsa/rsa.h
+7
-1
crypto/rsa/rsa_eay.c
crypto/rsa/rsa_eay.c
+6
-4
未找到文件。
CHANGES
浏览文件 @
770d19b8
...
...
@@ -4,6 +4,15 @@
Changes between 0.9.3a and 0.9.4 [xx Jul/Aug/...? 1999]
*) Added an extra RSA flag: RSA_FLAG_EXT_PKEY. Previously the rsa_mod_exp
method only got called if p,q,dmp1,dmq1,iqmp components were present,
otherwise bn_mod_exp was called. In the case of hardware keys for example
no private key components need be present and it might store extra data
in the RSA structure, which cannot be accessed from bn_mod_exp. By setting
RSA_FLAG_EXT_PKEY rsa_mod_exp will always be called for private key
operations.
[Steve Henson]
*) Added support for SPARC Linux.
[Andy Polyakov]
...
...
This diff is collapsed.
Click to expand it.
STATUS
浏览文件 @
770d19b8
OpenSSL STATUS Last modified at
______________ $Date: 1999/07/2
5 12:19:02
$
______________ $Date: 1999/07/2
7 21:58:06
$
DEVELOPMENT STATE
...
...
@@ -27,8 +27,6 @@
o Steve is currently working on (in no particular order):
Proper (or at least usable) certificate chain verification.
Documentation on X509 V3 extension code.
PKCS #8 and PKCS#5 v2.0 support.
Private key, certificate and CRL API and implementation.
Checking and bugfixing PKCS#7 (S/MIME code).
...
...
This diff is collapsed.
Click to expand it.
crypto/rsa/rsa.h
浏览文件 @
770d19b8
...
...
@@ -108,7 +108,7 @@ struct rsa_st
BIGNUM
*
dmp1
;
BIGNUM
*
dmq1
;
BIGNUM
*
iqmp
;
/* be careful
l
using this if the RSA structure is shared */
/* be careful using this if the RSA structure is shared */
CRYPTO_EX_DATA
ex_data
;
int
references
;
int
flags
;
...
...
@@ -133,6 +133,12 @@ struct rsa_st
#define RSA_FLAG_CACHE_PRIVATE 0x04
#define RSA_FLAG_BLINDING 0x08
#define RSA_FLAG_THREAD_SAFE 0x10
/* This flag means the private key operations will be handled by rsa_mod_exp
* and that they do not depend on the private key components being present:
* for example a key stored in external hardware. Without this flag bn_mod_exp
* gets called when private key components are absent.
*/
#define RSA_FLAG_EXT_PKEY 0x20
#define RSA_PKCS1_PADDING 1
#define RSA_SSLV23_PADDING 2
...
...
This diff is collapsed.
Click to expand it.
crypto/rsa/rsa_eay.c
浏览文件 @
770d19b8
...
...
@@ -205,11 +205,12 @@ static int RSA_eay_private_encrypt(int flen, unsigned char *from,
if
(
rsa
->
flags
&
RSA_FLAG_BLINDING
)
if
(
!
BN_BLINDING_convert
(
&
f
,
rsa
->
blinding
,
ctx
))
goto
err
;
if
(
(
rsa
->
p
!=
NULL
)
&&
if
(
(
rsa
->
flags
&
RSA_FLAG_EXT_PKEY
)
||
((
rsa
->
p
!=
NULL
)
&&
(
rsa
->
q
!=
NULL
)
&&
(
rsa
->
dmp1
!=
NULL
)
&&
(
rsa
->
dmq1
!=
NULL
)
&&
(
rsa
->
iqmp
!=
NULL
))
(
rsa
->
iqmp
!=
NULL
))
)
{
if
(
!
rsa
->
meth
->
rsa_mod_exp
(
&
ret
,
&
f
,
rsa
))
goto
err
;
}
else
{
...
...
@@ -278,11 +279,12 @@ static int RSA_eay_private_decrypt(int flen, unsigned char *from,
if
(
!
BN_BLINDING_convert
(
&
f
,
rsa
->
blinding
,
ctx
))
goto
err
;
/* do the decrypt */
if
(
(
rsa
->
p
!=
NULL
)
&&
if
(
(
rsa
->
flags
&
RSA_FLAG_EXT_PKEY
)
||
((
rsa
->
p
!=
NULL
)
&&
(
rsa
->
q
!=
NULL
)
&&
(
rsa
->
dmp1
!=
NULL
)
&&
(
rsa
->
dmq1
!=
NULL
)
&&
(
rsa
->
iqmp
!=
NULL
))
(
rsa
->
iqmp
!=
NULL
))
)
{
if
(
!
rsa
->
meth
->
rsa_mod_exp
(
&
ret
,
&
f
,
rsa
))
goto
err
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
新手
引导
客服
返回
顶部