pgsql: Fix generation of padding message before encrypting Elgamal inp

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Fix generation of padding message before encrypting Elgamal inp
Дата
Msg-id E1ge92d-0004nJ-W9@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Improve comments and logs in do_pg_stop/start_backup
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Remove configure switch --disable-strong-random