pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix generation of padding message before encrypting Elgamal in p
3+ messages / 1 participants
[nested] [flat]

* pgsql: Fix generation of padding message before encrypting Elgamal in p
@ 2019-01-01 01:40  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2019-01-01 01:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/20186.1546188423@sss.pgh.pa.us
Backpatch-through: 10

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d880b208e5fcf55e3ae396d5fc5fa6639f58205f

Modified Files
--------------
contrib/pgcrypto/pgp-pubenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Fix generation of padding message before encrypting Elgamal in p
@ 2019-01-01 01:40  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2019-01-01 01:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/20186.1546188423@sss.pgh.pa.us
Backpatch-through: 10

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2882bab920a41186ed9ec719947b1e730fd335a8

Modified Files
--------------
contrib/pgcrypto/pgp-pubenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Fix generation of padding message before encrypting Elgamal in p
@ 2019-01-01 01:40  Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Paquier @ 2019-01-01 01:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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/20186.1546188423@sss.pgh.pa.us
Backpatch-through: 10

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/962da60591dfa01b335e0bc7c1fd0b74ea10bf97

Modified Files
--------------
contrib/pgcrypto/pgp-pubenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-01-01 01:40 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01 01:40 pgsql: Fix generation of padding message before encrypting Elgamal in p Michael Paquier <michael@paquier.xyz>
2019-01-01 01:40 pgsql: Fix generation of padding message before encrypting Elgamal in p Michael Paquier <michael@paquier.xyz>
2019-01-01 01:40 pgsql: Fix generation of padding message before encrypting Elgamal in p Michael Paquier <michael@paquier.xyz>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox