pgcrypto: support changing S2K iteration count
Alvaro Herrera <alvherre@alvh.no-ip.org>
pgcrypto: support changing S2K iteration count pgcrypto already supports key-stretching during symmetric encryption, including the salted-and-iterated method; but the number of iterations was not configurable. This commit implements a new s2k-count parameter to pgp_sym_encrypt() which permits selecting a larger number of iterations. Author: Jeff Janes
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgcrypto/expected/pgp-encrypt.out | modified | +19 −0 |
| contrib/pgcrypto/pgp.c | modified | +13 −0 |
| contrib/pgcrypto/pgp-decrypt.c | modified | +1 −0 |
| contrib/pgcrypto/pgp-encrypt.c | modified | +1 −1 |
| contrib/pgcrypto/pgp.h | modified | +8 −2 |
| contrib/pgcrypto/pgp-pgsql.c | modified | +10 −0 |
| contrib/pgcrypto/pgp-s2k.c | modified | +24 −13 |
| contrib/pgcrypto/sql/pgp-encrypt.sql | modified | +9 −0 |
| doc/src/sgml/pgcrypto.sgml | modified | +13 −0 |