-
Notifications
You must be signed in to change notification settings - Fork 68
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
PRG实现 #184
Comments
EDIT: Sorry 刚才看错了,第二个是可以的,这是我们为了 spu 上可以通过比较少量的通信使不同参与方可以获取到相同随机数的一种 trick,如果严格遵循 NIST 标准的话应该是无法达到的 ++++++
|
第一个感觉也是可以的,PRG实现貌似是对counter进行AES加密,counter是一个uint128_t类型的,溢出之后会重新变成0,而AES ECB模式在明文相同时,密文也相同。所以理论上在2^128个连续输出之后所有的输出都可以预测,但是实际中谁会执行2^128次。 |
是的,所以在一般使用场景下不建议(直接)使用 yacl 的 prg,除非用户很清楚自己在做什么 |
我先关闭这个 issue 了~ 如果有后续问题可以在这里继续留言,thx |
The text was updated successfully, but these errors were encountered: