summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Paquier2019-01-01 01:39:19 +0000
committerMichael Paquier2019-01-01 01:39:19 +0000
commitd880b208e5fcf55e3ae396d5fc5fa6639f58205f (patch)
tree4607048daed196736ace80282789143e0c7535e3 /src
parent8d3b389ec3405659d8e2968fc6179b28b286ccd8 (diff)
Fix generation of padding message before encrypting Elgamal in pgcrypto
fe0a0b5, which has added a stronger random source in Postgres, has introduced a thinko when creating a padding message which gets encrypted for Elgamal. The padding message cannot have zeros, which are replaced by random bytes. However if pg_strong_random() failed, the message would finish by being considered in correct shape for encryption with zeros. Author: Tom Lane Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/[email protected] Backpatch-through: 10
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions