pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Munro <marc@bloodnok.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: GPG signing
Date: Tue, 26 May 2020 12:21:12 -0700
Message-ID: <1590520872.31834.34.camel@bloodnok.com> (raw)
In-Reply-To: <61f127e1-2e25-10e8-7c0b-4b8b4676b586@aklaver.com>
References: <1590519662.31834.32.camel@bloodnok.com>
	<61f127e1-2e25-10e8-7c0b-4b8b4676b586@aklaver.com>

On Tue, 2020-05-26 at 12:04 -0700, Adrian Klaver wrote:
> On 5/26/20 12:01 PM, Marc Munro wrote:
> > I need to be able to cryptographically sign objects in my database
> > using a public key scheme.
> > [ . . . ]
> > Any other options?  Am I missing something?
> 
> https://www.postgresql.org/docs/12/pgcrypto.html#id-1.11.7.34.7

I looked at that but I must be missing something.  In order to usefully
sign something, the private, secret, key must be used to encrypt a
disgest of the thing being signed (something of a simplification, but
that's the gist).  This can then be verified, by anyone, using the
public key.

But the pgcrypto functions, for good reasons, do not allow the private
(secret) key to be used in this way.  Encryption and signing algorithms
are necessarily different as the secret key must be protected; and we
don't want signatures to be huge, and it seems that pgcrypto has not
implemented signing algorithms.

What am I missing?

__
Marc





view thread (11+ messages)  latest in thread

Message-ID: <1590520872.31834.34.camel@bloodnok.com>
Permalink:  ../1590520872.31834.34.camel@bloodnok.com/
Also on:    postgresql.org/message-id/1590520872.31834.34.camel@bloodnok.com

 · 

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-general@postgresql.org
  Cc: marc@bloodnok.com, adrian.klaver@aklaver.com
  Subject: Re: GPG signing
  In-Reply-To: <1590520872.31834.34.camel@bloodnok.com>
  References: <1590519662.31834.32.camel@bloodnok.com> <61f127e1-2e25-10e8-7c0b-4b8b4676b586@aklaver.com> <1590520872.31834.34.camel@bloodnok.com>

* 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