Re: [openpgp] time representation in OpenPGP

Benjamin Kaduk <kaduk@MIT.EDU> Tue, 05 July 2016 01:59 UTC

Return-Path: <kaduk@mit.edu>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6648712B063 for <openpgp@ietfa.amsl.com>; Mon, 4 Jul 2016 18:59:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.647
X-Spam-Level:
X-Spam-Status: No, score=-5.647 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2aKfAY5uI7sP for <openpgp@ietfa.amsl.com>; Mon, 4 Jul 2016 18:59:12 -0700 (PDT)
Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D809B12B02B for <openpgp@ietf.org>; Mon, 4 Jul 2016 18:59:11 -0700 (PDT)
X-AuditID: 1209190d-c4fff70000005a55-58-577b146d9af1
Received: from mailhub-auth-3.mit.edu ( [18.9.21.43]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id D9.F1.23125.D641B775; Mon, 4 Jul 2016 21:59:10 -0400 (EDT)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id u651x8wK022815; Mon, 4 Jul 2016 21:59:09 -0400
Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id u651x5Zc004061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 4 Jul 2016 21:59:08 -0400
Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id u651x5G7003847; Mon, 4 Jul 2016 21:59:05 -0400 (EDT)
Date: Mon, 04 Jul 2016 21:59:05 -0400
From: Benjamin Kaduk <kaduk@MIT.EDU>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
In-Reply-To: <20160703164942.GB327700@vauxhall.crustytoothpaste.net>
Message-ID: <alpine.GSO.1.10.1607042157560.5272@multics.mit.edu>
References: <87d1muyh70.fsf@alice.fifthhorseman.net> <fd725ea87a9141d0883831900e072f1f@usma1ex-dag1mb1.msg.corp.akamai.com> <51e9f5c2-fe2a-a699-aa0c-15114cf948f3@sumptuouscapital.com> <20160703164942.GB327700@vauxhall.crustytoothpaste.net>
User-Agent: Alpine 1.10 (GSO 962 2008-03-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsUixCmqrZsnUh1uMCvJouHfQ3aLtpk/mByY PJbf/MvksWTJT6YApigum5TUnMyy1CJ9uwSujIezNjIV3GSveL7hCWsDYwdbFyMnh4SAiUTn yvmMXYxcHEICbUwSh9bNYIJwNjBK7N+8lRXCOcgksWTdf2aQFiGBeonHxzvYQWwWAS2JNTu2 go1iE1CRmPlmI5gtImAqseT9PiYQm1lAWWLlzetAcQ4OYaD4hm0xIGFOAReJKROWsIDYvAIO EuuP7mSD2PWeUWLtxZdg80UFdCRW758CVSQocXLmExaImVoSy6dvY5nAKDALSWoWktQCRqZV jLIpuVW6uYmZOcWpybrFyYl5ealFukZ6uZkleqkppZsYwQEpybuD8d9dr0OMAhyMSjy8BfOr woVYE8uKK3MPMUpyMCmJ8r76BxTiS8pPqcxILM6ILyrNSS0+xCjBwawkwvtQoDpciDclsbIq tSgfJiXNwaIkzhtz82iYkEB6YklqdmpqQWoRTFaGg0NJgtdAGKhRsCg1PbUiLTOnBCHNxMEJ MpwHaPgekBre4oLE3OLMdIj8KUZdjgU/bq9lEmLJy89LlRLnPS8EVCQAUpRRmgc3B5xIdjOp vmIUB3pLmPcBSBUPMAnBTXoFtIQJaAlrbDnIkpJEhJRUA2OGZpdT7YM/vucPGmxSd8utlZv3 Qs64uaszL3au5bRXcomTRS5kmgrJOeizqB6Za8VqqWbKM3/hyQ3xBat/7ct9KHjzQ8ndhndB ikmeZqY6G0UWm69YIiKz+ZTtofkst7tMv21ifu6pvdF7w438lgkLmr6xKxcInepR1Xl1t3UL N3/M9OnMv5RYijMSDbWYi4oTAUl25w7/AgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/4pRSgyiUTM8y-ibOg_dTszDXBSY>
Cc: IETF OpenPGP <openpgp@ietf.org>
Subject: Re: [openpgp] time representation in OpenPGP
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/openpgp/>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 05 Jul 2016 01:59:13 -0000

On Sun, 3 Jul 2016, brian m. carlson wrote:

> On Sun, Jul 03, 2016 at 03:57:31PM +0200, Kristian Fiskerstrand wrote:
> > On 07/03/2016 03:48 PM, Salz, Rich wrote:
> > > I suggest we use ASN1 generalized time (which has only a couple of
> > > bytes overhead) or ISO 8601 profiled to be like the ASN1 format:
> > > YYYY-MM-DD-HH:MM:SS.sss with fraction optional.
> > >
> >
> > ASN1 sounds complex in this case, some form of ISO8601 variant might be
> > helpful.
> >
> > Alternatively expanding the size of the value from 32 bits to 64 bits
> > might be easier to deal with for backwards compatibility reasons.
>
> I'd strongly recommend simply using a 64-bit (signed?) integer.  It's
> compact, avoids time zones (which are a source of bugs), and is the
> logical extension.

I've seen 64-bit integer measuring in quanta of 100ns in a few places,
FWIW.  The finer granularity doesn't really eat into the usable range, for
a couple axes of future-proofing.

-Ben