随机性与伪机数生成器.ppt

  1. 1、本文档共20页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
随机性与伪随机数生成器 主讲人:赵永哲 e_mail: yongzhe @ 电话 安全的密钥 加密算法的安全性是以密钥的安全性为基础的。 安全的密钥指的是这个密钥必须是随机数。 如果它们不随机,或如果在产生随机数过程中有一点偏差,破译者就能利用这个偏差对保密信息进行破译 随机性 伪随机序列 密码学意义上的伪随机序列 真随机序列 伪随机序列 均匀分布数列中每个数出现的频率应相等或近似相等。 应该有大约相同的0和1 长度为1的游程大约占一半 长度为2的游程大约占1/4 长度为3的游程大约占1/8 密码学意义上的伪随机序列 不可预测的 即使给出产生序列的算法或硬件和所有以前产生的位序列,也不能预测下一个随机位是什么 真随机序列 不能重复产生 即使在完全相同的操作条件下用完全相同的输入对序列发生器操作两次,也将得到两个完全不同的、毫不相关的位序列。 独立性数列中任意一数都不能由其他数推出 密钥的分类和对随机性的要求 主密钥(Master Key) 真随机序列 会话密钥(Session Key) 伪随机序列 真随机数生成器 RNG – Random Number Generators Random Number Generators are generating numbers in a sequence in such away that the next number has no relation with the previous numbers ORIONs Random Number Generator ORIONs Random Number Generator consists of two independent analogue Zener diode based noise sources. Both signals are converted into random bit streams, combined and subsequently transmitted in the form of bytes to the RS-232 port of your computer. The baud rate is 9600. So the device is capable of supplying you with about 960random bytes or 7600 random bits per second € 580 Quantum Random Bit Generator http://random.irb.hr/ QRBG121 is a fast non-deterministic random bit (number) generator whose randomness relies on intrinsic randomness of the quantum physical process of photonic emission in semiconductors and subsequent detection by photoelectric effect. In this process photons are detected at random, one by one independently of each other. Timing information of detected photons is used to generate random binary digits - bits. 伪随机数生成器 PRNG – Pseudo Random Number Generators 伪随机数生成器是一个确定性算法,用一个长度为k的二进制序列作为愉入,算法就能产生长度为m (mk)的随机数序列。 伪随机生成器的输入称为产生器的种子。 线性同余算法的PRNG Xn+1=(aXn+c) mod m 模数m(m0), 乘数a(0≤am), 增量c(0≤cm), 初值即种子X0(0≤X0m); 如果m、a、c、X0都为整数,则产生的随机数数列{Xn}也都是整数,且0≤Xnm。 线性同余算法的PRNG Simple, fastest For 32-bit words, the period can reach 232 Insecure, the formula can be worked out from output Fails in many tests Sufficiently random for man

文档评论(0)

wcc543543 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档