This Python library provides a cryptographically secure pseudorandom number generator.
Specifically, it implements **HMAC_DRBG** (SHA-512) as specified in
[NIST SP 800-90A](http://csrc.nist.gov/publications/nistpubs/800-90A/SP800-90A.pdf).
For simplicity, this library currently does not track the seed period,
so the `generate` function always returns the requested number of bytes.
It is the user's responsibility to periodically reseed the PRNG.
This library is tested with NIST-provided test vectors.
To run the tests:
$ python hmac_drbg_tests.py
Passed all 224 tests.
**See also**: [go-crypto](https://github.com/davidlazar/go-crypto).
没有合适的资源?快使用搜索试试~ 我知道了~
python-drbg:适用于Python的加密安全PRNG
共5个文件
py:2个
md:1个
license:1个
5星 · 超过95%的资源 需积分: 16 2 下载量 30 浏览量
2021-05-26
01:15:24
上传
评论
收藏 571KB ZIP 举报
温馨提示
该Python库提供了加密安全的伪随机数生成器。 具体来说,它实现了指定的HMAC_DRBG (SHA-512)。 为简单起见,该库当前不跟踪种子周期,因此generate函数始终返回请求的字节数。 定期重新设置PRNG是用户的责任。 该库已通过NIST提供的测试向量进行了测试。 要运行测试: $ python hmac_drbg_tests.py Passed all 224 tests. 另请参阅: 。
资源详情
资源评论
资源推荐
收起资源包目录
python-drbg-master.zip (5个子文件)
python-drbg-master
HMAC_DRBG_PR.rsp 1.18MB
hmac_drbg.py 745B
LICENSE 1KB
hmac_drbg_tests.py 3KB
README.md 654B
共 5 条
- 1
徐志鹄
- 粉丝: 16
- 资源: 4661
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1