Commit db28525
committed
Fix nonce reuse in RFC 9381 VRF proving
gen_rng used a fresh hasher instead of the transcript state,
making the nonce depend only on the secret key. Two proofs
with different inputs shared the same nonce, enabling full
secret key recovery: x = (s1 - s2) / (c1 - c2).1 parent b7a84f1 commit db28525
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
141 | 143 | | |
142 | 144 | | |
143 | 145 | | |
| |||
0 commit comments