Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
513393f8
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看板
提交
513393f8
编写于
3月 22, 2000
作者:
U
Ulf Möller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
RAND_event()
上级
e77066ea
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
17 addition
and
8 deletion
+17
-8
doc/crypto/RAND_add.pod
doc/crypto/RAND_add.pod
+17
-8
未找到文件。
doc/crypto/RAND_add.pod
浏览文件 @
513393f8
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
=head1 NAME
=head1 NAME
RAND_add, RAND_seed, RAND_status, RAND_screen - add entropy to the PRNG
RAND_add, RAND_seed, RAND_status, RAND_event, RAND_screen - add
entropy to the PRNG
=head1 SYNOPSIS
=head1 SYNOPSIS
...
@@ -14,6 +15,7 @@ RAND_add, RAND_seed, RAND_status, RAND_screen - add entropy to the PRNG
...
@@ -14,6 +15,7 @@ RAND_add, RAND_seed, RAND_status, RAND_screen - add entropy to the PRNG
int RAND_status(void);
int RAND_status(void);
int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam);
void RAND_screen(void);
void RAND_screen(void);
=head1 DESCRIPTION
=head1 DESCRIPTION
...
@@ -40,17 +42,24 @@ or L<RAND_load_file(3)|RAND_load_file(3)>.
...
@@ -40,17 +42,24 @@ or L<RAND_load_file(3)|RAND_load_file(3)>.
RAND_seed() is equivalent to RAND_add() when B<num == entropy>.
RAND_seed() is equivalent to RAND_add() when B<num == entropy>.
RAND_event() collects the entropy from Windows events such as mouse
movements and other user interaction. It should be called with the
B<iMsg>, B<wParam> and B<lParam> arguments of I<all> messages sent to
the window procedure. It will estimate the entropy contained in the
event message (if any), and add it to the PRNG. The program can then
process the messages as usual.
The RAND_screen() function is available for the convenience of Windows
The RAND_screen() function is available for the convenience of Windows
programmers. It adds the current contents of the screen to the PRNG.
programmers. It adds the current contents of the screen to the PRNG.
For applications that can catch Windows events, seeding the PRNG
with
For applications that can catch Windows events, seeding the PRNG
by
the parameters of B<WM_MOUSEMOVE> events is a significantly better
calling RAND_event() is a significantly better source of
source of randomness. It should be noted that both methods cannot be
randomness. It should be noted that both methods cannot be used on
used on
servers that run without user interaction.
servers that run without user interaction.
=head1 RETURN VALUES
=head1 RETURN VALUES
RAND_status()
returns 1 if the PRNG has been seeded with enough data,
RAND_status()
and RAND_event() return 1 if the PRNG has been seeded
0 otherwise.
with enough data,
0 otherwise.
The other functions do not return values.
The other functions do not return values.
...
@@ -63,6 +72,6 @@ L<RAND_load_file(3)|RAND_load_file(3)>, L<RAND_cleanup(3)|RAND_cleanup(3)>
...
@@ -63,6 +72,6 @@ L<RAND_load_file(3)|RAND_load_file(3)>, L<RAND_cleanup(3)|RAND_cleanup(3)>
RAND_seed() and RAND_screen() are available in all versions of SSLeay
RAND_seed() and RAND_screen() are available in all versions of SSLeay
and OpenSSL. RAND_add() and RAND_status() have been added in OpenSSL
and OpenSSL. RAND_add() and RAND_status() have been added in OpenSSL
0.9.5.
0.9.5
, RAND_event() in OpenSSL 0.9.5a
.
=cut
=cut
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录