forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd880b20
committed
Fix generation of padding message before encrypting Elgamal in pgcrypto
fe0a0b5, which has added a stronger random source in Postgres, hasintroduced a thinko when creating a padding message which gets encryptedfor Elgamal. The padding message cannot have zeros, which are replacedby random bytes. However if pg_strong_random() failed, the messagewould finish by being considered in correct shape for encryption withzeros.Author: Tom LaneReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/20186.1546188423@sss.pgh.pa.usBackpatch-through: 101 parent8d3b389 commitd880b20
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
66 | 66 |
| |
67 | 67 |
| |
68 | 68 |
| |
69 |
| - | |
| 69 | + | |
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
|
0 commit comments
Comments
(0)