Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

随机数熵源增加系统时间(RTC)方案 #512

Merged
merged 1 commit into from
Nov 14, 2023
Merged

随机数熵源增加系统时间(RTC)方案 #512

merged 1 commit into from
Nov 14, 2023

Conversation

dongbeiouba
Copy link
Member

通过反复获取系统时间(real-time clock)来产生不可预测的数据。
算法依赖于在执行代码或读写内存时,受缓存未命中、系统中断、调度等多个
因素影响,导致消耗的时间不确定,从而每次获取的系统时间也不确定。

具体包括2个方案:
1.执行特定代码后,获取系统时间。
2.读写特定内存后,获取系统时间。

Checklist
  • https://yuque.com/tsdoc 增加或更新了必要的文档
  • 增加或更新了必要的测试用例
  • 对于重要修改,更新了CHANGES文件
  • 当前修改存在对已有API参数或返回值的改变
  • 当前修改存在对旧版本功能的兼容性改变(如网络协议或密码算法)

通过反复获取系统时间(real-time clock)来产生不可预测的数据。
算法依赖于在执行代码或读写内存时,受缓存未命中、系统中断、调度等多个
因素影响,导致消耗的时间不确定,从而每次获取的系统时间也不确定。

具体包括2个方案:
1.执行特定代码后,获取系统时间。
2.读写特定内存后,获取系统时间。
@InfoHunter InfoHunter merged commit d7a9b4c into Tongsuo-Project:master Nov 14, 2023
77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants