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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/188f359d39ed65b5f3ddc1f397140fb9d153e61a
Modified Files
--------------
contrib/pgcrypto/expected/pgp-encrypt.out | 19 ++++++++++++++++
contrib/pgcrypto/pgp-decrypt.c | 1 +
contrib/pgcrypto/pgp-encrypt.c | 2 +-
contrib/pgcrypto/pgp-pgsql.c | 10 +++++++++
contrib/pgcrypto/pgp-s2k.c | 37 ++++++++++++++++++++-----------
contrib/pgcrypto/pgp.c | 13 +++++++++++
contrib/pgcrypto/pgp.h | 10 +++++++--
contrib/pgcrypto/sql/pgp-encrypt.sql | 9 ++++++++
doc/src/sgml/pgcrypto.sgml | 13 +++++++++++
9 files changed, 98 insertions(+), 16 deletions(-)