pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: pgcrypto: support changing S2K iteration count
Date: Wed, 09 Mar 2016 17:35:46 +0000
Message-ID: <E1adi1S-0000KS-Sn@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1adi1S-0000KS-Sn@gemulon.postgresql.org>
Permalink:  ../E1adi1S-0000KS-Sn@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1adi1S-0000KS-Sn@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: pgcrypto: support changing S2K iteration count
  In-Reply-To: <E1adi1S-0000KS-Sn@gemulon.postgresql.org>
  References: <E1adi1S-0000KS-Sn@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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