]> granicus.if.org Git - postgresql/commit
pgcrypto: support changing S2K iteration count
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 9 Mar 2016 17:31:07 +0000 (14:31 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 9 Mar 2016 17:31:07 +0000 (14:31 -0300)
commit188f359d39ed65b5f3ddc1f397140fb9d153e61a
tree19a88335d343b90f501f0d17a67947e52e2c0413
parentb6fb6471f6afaf649e52f38269fd8c5c60647669
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
contrib/pgcrypto/expected/pgp-encrypt.out
contrib/pgcrypto/pgp-decrypt.c
contrib/pgcrypto/pgp-encrypt.c
contrib/pgcrypto/pgp-pgsql.c
contrib/pgcrypto/pgp-s2k.c
contrib/pgcrypto/pgp.c
contrib/pgcrypto/pgp.h
contrib/pgcrypto/sql/pgp-encrypt.sql
doc/src/sgml/pgcrypto.sgml