Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdip5-00025F-Bd for pgsql-general@arkaria.postgresql.org; Tue, 26 May 2020 23:17:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jdip3-0006fP-Mf for pgsql-general@arkaria.postgresql.org; Tue, 26 May 2020 23:17:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jdip3-0006fH-Eg for pgsql-general@lists.postgresql.org; Tue, 26 May 2020 23:17:25 +0000 Received: from ook.raf.org ([139.99.156.21]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jdip0-0003dt-Dp for pgsql-general@lists.postgresql.org; Tue, 26 May 2020 23:17:25 +0000 Received: from localhost (localhost [127.0.0.1]) by ook.raf.org (Postfix) with ESMTP id D5E295E290 for ; Wed, 27 May 2020 09:17:17 +1000 (AEST) X-Virus-Scanned: Debian amavisd-new at ook.raf.org Received: from ook.raf.org ([127.0.0.1]) by localhost (ook.raf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HOFzUWhMWhHC for ; Wed, 27 May 2020 09:17:16 +1000 (AEST) Received: by ook.raf.org (Postfix, from userid 1001) id CFF825E2F5; Wed, 27 May 2020 09:17:16 +1000 (AEST) Date: Wed, 27 May 2020 09:17:16 +1000 From: raf To: pgsql-general@lists.postgresql.org Subject: Re: GPG signing Message-ID: <20200526231716.drwyuv7hefu3ky2k@raf.org> References: <1590519662.31834.32.camel@bloodnok.com> <61f127e1-2e25-10e8-7c0b-4b8b4676b586@aklaver.com> <1590520872.31834.34.camel@bloodnok.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1590520872.31834.34.camel@bloodnok.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Marc Munro wrote: > 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 That page linked to above says: F.25.3.10. Limitations of PGP Code No support for signing.