Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
e92f9f45
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看板
提交
e92f9f45
编写于
1月 26, 2010
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add flags functions which were added to 0.9.8 for fips but not 1.0.0 and
later.
上级
8c02119e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
30 addition
and
4 deletion
+30
-4
crypto/evp/evp.h
crypto/evp/evp.h
+4
-0
crypto/evp/evp_lib.c
crypto/evp/evp_lib.c
+15
-0
crypto/hmac/hmac.c
crypto/hmac/hmac.c
+6
-0
crypto/hmac/hmac.h
crypto/hmac/hmac.h
+1
-0
util/libeay.num
util/libeay.num
+4
-4
未找到文件。
crypto/evp/evp.h
浏览文件 @
e92f9f45
...
...
@@ -521,6 +521,10 @@ __owur int EVP_BytesToKey(const EVP_CIPHER *type,const EVP_MD *md,
const
unsigned
char
*
salt
,
const
unsigned
char
*
data
,
int
datal
,
int
count
,
unsigned
char
*
key
,
unsigned
char
*
iv
);
void
EVP_CIPHER_CTX_set_flags
(
EVP_CIPHER_CTX
*
ctx
,
int
flags
);
void
EVP_CIPHER_CTX_clear_flags
(
EVP_CIPHER_CTX
*
ctx
,
int
flags
);
int
EVP_CIPHER_CTX_test_flags
(
const
EVP_CIPHER_CTX
*
ctx
,
int
flags
);
__owur
int
EVP_EncryptInit
(
EVP_CIPHER_CTX
*
ctx
,
const
EVP_CIPHER
*
cipher
,
const
unsigned
char
*
key
,
const
unsigned
char
*
iv
);
__owur
int
EVP_EncryptInit_ex
(
EVP_CIPHER_CTX
*
ctx
,
const
EVP_CIPHER
*
cipher
,
ENGINE
*
impl
,
...
...
crypto/evp/evp_lib.c
浏览文件 @
e92f9f45
...
...
@@ -295,3 +295,18 @@ int EVP_MD_CTX_test_flags(const EVP_MD_CTX *ctx, int flags)
{
return
(
ctx
->
flags
&
flags
);
}
void
EVP_CIPHER_CTX_set_flags
(
EVP_CIPHER_CTX
*
ctx
,
int
flags
)
{
ctx
->
flags
|=
flags
;
}
void
EVP_CIPHER_CTX_clear_flags
(
EVP_CIPHER_CTX
*
ctx
,
int
flags
)
{
ctx
->
flags
&=
~
flags
;
}
int
EVP_CIPHER_CTX_test_flags
(
const
EVP_CIPHER_CTX
*
ctx
,
int
flags
)
{
return
(
ctx
->
flags
&
flags
);
}
crypto/hmac/hmac.c
浏览文件 @
e92f9f45
...
...
@@ -209,3 +209,9 @@ unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
return
NULL
;
}
void
HMAC_CTX_set_flags
(
HMAC_CTX
*
ctx
,
unsigned
long
flags
)
{
EVP_MD_CTX_set_flags
(
&
ctx
->
i_ctx
,
flags
);
EVP_MD_CTX_set_flags
(
&
ctx
->
o_ctx
,
flags
);
EVP_MD_CTX_set_flags
(
&
ctx
->
md_ctx
,
flags
);
}
crypto/hmac/hmac.h
浏览文件 @
e92f9f45
...
...
@@ -101,6 +101,7 @@ unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len,
unsigned
int
*
md_len
);
__owur
int
HMAC_CTX_copy
(
HMAC_CTX
*
dctx
,
HMAC_CTX
*
sctx
);
void
HMAC_CTX_set_flags
(
HMAC_CTX
*
ctx
,
unsigned
long
flags
);
#ifdef __cplusplus
}
...
...
util/libeay.num
浏览文件 @
e92f9f45
...
...
@@ -2843,7 +2843,7 @@ FIPS_selftest_failed 3284 NOEXIST::FUNCTION:
sk_is_sorted 3285 EXIST::FUNCTION:
X509_check_ca 3286 EXIST::FUNCTION:
private_idea_set_encrypt_key 3287 NOEXIST::FUNCTION:
HMAC_CTX_set_flags 3288
NOEXIST::FUNCTION:
HMAC_CTX_set_flags 3288
EXIST::FUNCTION:HMAC
private_SHA_Init 3289 NOEXIST::FUNCTION:
private_CAST_set_key 3290 NOEXIST::FUNCTION:
private_RIPEMD160_Init 3291 NOEXIST::FUNCTION:
...
...
@@ -3660,7 +3660,7 @@ ENGINE_load_ssl_client_cert 4046 EXIST::FUNCTION:ENGINE
ENGINE_load_capi 4047 EXIST::FUNCTION:ENGINE,STATIC_ENGINE
OPENSSL_isservice 4048 EXIST::FUNCTION:
FIPS_dsa_sig_decode 4049 NOEXIST::FUNCTION:
EVP_CIPHER_CTX_clear_flags 4050
NO
EXIST::FUNCTION:
EVP_CIPHER_CTX_clear_flags 4050 EXIST::FUNCTION:
FIPS_rand_status 4051 NOEXIST::FUNCTION:
FIPS_rand_set_key 4052 NOEXIST::FUNCTION:
CRYPTO_set_mem_info_functions 4053 NOEXIST::FUNCTION:
...
...
@@ -3669,7 +3669,7 @@ int_ERR_set_state_func 4055 NOEXIST::FUNCTION:
int_EVP_MD_set_engine_callbacks 4056 NOEXIST::FUNCTION:
int_CRYPTO_set_do_dynlock_callback 4057 NOEXIST::FUNCTION:
FIPS_rng_stick 4058 NOEXIST::FUNCTION:
EVP_CIPHER_CTX_set_flags 4059
NO
EXIST::FUNCTION:
EVP_CIPHER_CTX_set_flags 4059 EXIST::FUNCTION:
BN_X931_generate_prime_ex 4060 NOEXIST::FUNCTION:
FIPS_selftest_check 4061 NOEXIST::FUNCTION:
FIPS_rand_set_dt 4062 NOEXIST::FUNCTION:
...
...
@@ -3679,7 +3679,7 @@ RSA_X931_derive_ex 4065 NOEXIST::FUNCTION:
FIPS_rsa_new 4066 NOEXIST::FUNCTION:
FIPS_rand_bytes 4067 NOEXIST::FUNCTION:
fips_cipher_test 4068 NOEXIST::FUNCTION:
EVP_CIPHER_CTX_test_flags 4069
NO
EXIST::FUNCTION:
EVP_CIPHER_CTX_test_flags 4069 EXIST::FUNCTION:
CRYPTO_malloc_debug_init 4070 NOEXIST::FUNCTION:
CRYPTO_dbg_push_info 4071 NOEXIST::FUNCTION:
FIPS_corrupt_rsa_keygen 4072 NOEXIST::FUNCTION:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录