Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
8aa02e97
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,发现更多精彩内容 >>
You need to sign in or sign up before continuing.
提交
8aa02e97
编写于
12月 29, 2008
作者:
B
Ben Laurie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make sure a bad parameter to RSA_verify_PKCS1_PSS() doesn't lead to a crash.
(Coverity ID 135).
上级
a68c7b91
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
10 addition
and
1 deletion
+10
-1
crypto/rsa/rsa.h
crypto/rsa/rsa.h
+1
-0
crypto/rsa/rsa_err.c
crypto/rsa/rsa_err.c
+2
-1
crypto/rsa/rsa_pss.c
crypto/rsa/rsa_pss.c
+6
-0
ssl/s3_pkt.c
ssl/s3_pkt.c
+1
-0
未找到文件。
crypto/rsa/rsa.h
浏览文件 @
8aa02e97
...
@@ -448,6 +448,7 @@ void ERR_load_RSA_strings(void);
...
@@ -448,6 +448,7 @@ void ERR_load_RSA_strings(void);
/* Reason codes. */
/* Reason codes. */
#define RSA_R_ALGORITHM_MISMATCH 100
#define RSA_R_ALGORITHM_MISMATCH 100
#define RSA_R_BAD_ARGUMENT 149
#define RSA_R_BAD_E_VALUE 101
#define RSA_R_BAD_E_VALUE 101
#define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
#define RSA_R_BAD_FIXED_HEADER_DECRYPT 102
#define RSA_R_BAD_PAD_BYTE_COUNT 103
#define RSA_R_BAD_PAD_BYTE_COUNT 103
...
...
crypto/rsa/rsa_err.c
浏览文件 @
8aa02e97
/* crypto/rsa/rsa_err.c */
/* crypto/rsa/rsa_err.c */
/* ====================================================================
/* ====================================================================
* Copyright (c) 1999-200
7
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-200
8
The OpenSSL Project. All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* modification, are permitted provided that the following conditions
...
@@ -124,6 +124,7 @@ static ERR_STRING_DATA RSA_str_functs[]=
...
@@ -124,6 +124,7 @@ static ERR_STRING_DATA RSA_str_functs[]=
static
ERR_STRING_DATA
RSA_str_reasons
[]
=
static
ERR_STRING_DATA
RSA_str_reasons
[]
=
{
{
{
ERR_REASON
(
RSA_R_ALGORITHM_MISMATCH
)
,
"algorithm mismatch"
},
{
ERR_REASON
(
RSA_R_ALGORITHM_MISMATCH
)
,
"algorithm mismatch"
},
{
ERR_REASON
(
RSA_R_BAD_ARGUMENT
)
,
"bad argument"
},
{
ERR_REASON
(
RSA_R_BAD_E_VALUE
)
,
"bad e value"
},
{
ERR_REASON
(
RSA_R_BAD_E_VALUE
)
,
"bad e value"
},
{
ERR_REASON
(
RSA_R_BAD_FIXED_HEADER_DECRYPT
),
"bad fixed header decrypt"
},
{
ERR_REASON
(
RSA_R_BAD_FIXED_HEADER_DECRYPT
),
"bad fixed header decrypt"
},
{
ERR_REASON
(
RSA_R_BAD_PAD_BYTE_COUNT
)
,
"bad pad byte count"
},
{
ERR_REASON
(
RSA_R_BAD_PAD_BYTE_COUNT
)
,
"bad pad byte count"
},
...
...
crypto/rsa/rsa_pss.c
浏览文件 @
8aa02e97
...
@@ -81,6 +81,12 @@ int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
...
@@ -81,6 +81,12 @@ int RSA_verify_PKCS1_PSS(RSA *rsa, const unsigned char *mHash,
EVP_MD_CTX
ctx
;
EVP_MD_CTX
ctx
;
unsigned
char
H_
[
EVP_MAX_MD_SIZE
];
unsigned
char
H_
[
EVP_MAX_MD_SIZE
];
if
(
Hash
==
NULL
)
{
RSAerr
(
RSA_F_RSA_VERIFY_PKCS1_PSS
,
RSA_R_BAD_ARGUMENT
);
goto
err
;
}
hLen
=
EVP_MD_size
(
Hash
);
hLen
=
EVP_MD_size
(
Hash
);
/*
/*
* Negative sLen has special meanings:
* Negative sLen has special meanings:
...
...
ssl/s3_pkt.c
浏览文件 @
8aa02e97
...
@@ -412,6 +412,7 @@ printf("\n");
...
@@ -412,6 +412,7 @@ printf("\n");
if
(
!
clear
)
if
(
!
clear
)
{
{
/* !clear => s->read_hash != NULL => mac_size != -1 */
mac_size
=
EVP_MD_CTX_size
(
s
->
read_hash
);
mac_size
=
EVP_MD_CTX_size
(
s
->
read_hash
);
if
(
rr
->
length
>
SSL3_RT_MAX_COMPRESSED_LENGTH
+
extra
+
mac_size
)
if
(
rr
->
length
>
SSL3_RT_MAX_COMPRESSED_LENGTH
+
extra
+
mac_size
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录