Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
openssl
提交
f45c90bb
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,发现更多精彩内容 >>
提交
f45c90bb
编写于
11月 05, 2011
作者:
D
Dr. Stephen Henson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make post failure simulation reversible in all cases
上级
4692f9f7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
12 deletion
+12
-12
fips/fips.h
fips/fips.h
+2
-3
fips/fips_test_suite.c
fips/fips_test_suite.c
+2
-2
fips/rand/fips_drbg_lib.c
fips/rand/fips_drbg_lib.c
+2
-2
fips/rand/fips_rand.c
fips/rand/fips_rand.c
+2
-2
fips/rand/fips_rand_selftest.c
fips/rand/fips_rand_selftest.c
+4
-3
未找到文件。
fips/fips.h
浏览文件 @
f45c90bb
...
...
@@ -97,9 +97,8 @@ int FIPS_selftest_rsa(void);
int
FIPS_selftest_dsa
(
void
);
int
FIPS_selftest_ecdsa
(
void
);
int
FIPS_selftest_ecdh
(
void
);
void
FIPS_corrupt_drbg
(
void
);
void
FIPS_x931_stick
(
void
);
void
FIPS_drbg_stick
(
void
);
void
FIPS_x931_stick
(
int
onoff
);
void
FIPS_drbg_stick
(
int
onoff
);
int
FIPS_selftest_x931
(
void
);
int
FIPS_selftest_hmac
(
void
);
int
FIPS_selftest_drbg
(
void
);
...
...
fips/fips_test_suite.c
浏览文件 @
f45c90bb
...
...
@@ -1104,9 +1104,9 @@ int main(int argc, char **argv)
if
(
!
FIPS_module_mode
())
return
1
;
if
(
do_drbg_stick
)
FIPS_drbg_stick
();
FIPS_drbg_stick
(
1
);
if
(
do_rng_stick
)
FIPS_x931_stick
();
FIPS_x931_stick
(
1
);
/* AES encryption/decryption
*/
...
...
fips/rand/fips_drbg_lib.c
浏览文件 @
f45c90bb
...
...
@@ -544,9 +544,9 @@ void FIPS_drbg_set_reseed_interval(DRBG_CTX *dctx, int interval)
static
int
drbg_stick
=
0
;
void
FIPS_drbg_stick
(
void
)
void
FIPS_drbg_stick
(
int
onoff
)
{
drbg_stick
=
1
;
drbg_stick
=
onoff
;
}
/* Continuous DRBG utility function */
...
...
fips/rand/fips_rand.c
浏览文件 @
f45c90bb
...
...
@@ -114,9 +114,9 @@ static FIPS_PRNG_CTX sctx;
static
int
fips_prng_fail
=
0
;
void
FIPS_x931_stick
(
void
)
void
FIPS_x931_stick
(
int
onoff
)
{
fips_prng_fail
=
1
;
fips_prng_fail
=
onoff
;
}
static
void
fips_rand_prng_reset
(
FIPS_PRNG_CTX
*
ctx
)
...
...
fips/rand/fips_rand_selftest.c
浏览文件 @
f45c90bb
...
...
@@ -129,15 +129,16 @@ static AES_PRNG_TV aes_256_tv =
static
int
do_x931_test
(
unsigned
char
*
key
,
int
keylen
,
AES_PRNG_TV
*
tv
)
{
unsigned
char
R
[
16
];
unsigned
char
R
[
16
]
,
V
[
16
]
;
int
rv
=
1
;
memcpy
(
V
,
tv
->
V
,
sizeof
(
V
));
if
(
!
FIPS_x931_set_key
(
key
,
keylen
))
return
0
;
if
(
!
fips_post_started
(
FIPS_TEST_X931
,
keylen
,
NULL
))
return
1
;
if
(
!
fips_post_corrupt
(
FIPS_TEST_X931
,
keylen
,
NULL
))
tv
->
V
[
0
]
++
;
FIPS_x931_seed
(
tv
->
V
,
16
);
V
[
0
]
++
;
FIPS_x931_seed
(
V
,
16
);
FIPS_x931_set_dt
(
tv
->
DT
);
FIPS_x931_bytes
(
R
,
16
);
if
(
memcmp
(
R
,
tv
->
R
,
16
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录