Re: [Cfrg] Hash substitution in PSS

"Manger, James H" <James.H.Manger@team.telstra.com> Wed, 01 May 2013 00:44 UTC

Return-Path: <James.H.Manger@team.telstra.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B8D7221F85DC for <cfrg@ietfa.amsl.com>; Tue, 30 Apr 2013 17:44:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.765
X-Spam-Level:
X-Spam-Status: No, score=0.765 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994, SARE_OBFU_PART_ALI=1.666]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oPpl2c4XdpjE for <cfrg@ietfa.amsl.com>; Tue, 30 Apr 2013 17:44:38 -0700 (PDT)
Received: from ipxbno.tcif.telstra.com.au (ipxbno.tcif.telstra.com.au [203.35.82.204]) by ietfa.amsl.com (Postfix) with ESMTP id 5456B21F87B7 for <cfrg@irtf.org>; Tue, 30 Apr 2013 17:44:37 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.87,584,1363093200"; d="scan'208";a="126703753"
Received: from unknown (HELO ipccni.tcif.telstra.com.au) ([10.97.216.208]) by ipobni.tcif.telstra.com.au with ESMTP; 01 May 2013 10:44:33 +1000
X-IronPort-AV: E=McAfee;i="5400,1158,7061"; a="133482697"
Received: from wsmsg3707.srv.dir.telstra.com ([172.49.40.81]) by ipccni.tcif.telstra.com.au with ESMTP; 01 May 2013 10:44:32 +1000
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by wsmsg3707.srv.dir.telstra.com ([172.49.40.81]) with mapi; Wed, 1 May 2013 10:44:32 +1000
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Russ Housley <housley@vigilsec.com>, IRTF CFRG <cfrg@irtf.org>
Date: Wed, 01 May 2013 10:44:31 +1000
Thread-Topic: [Cfrg] Hash substitution in PSS
Thread-Index: Ac5FzXuCHLxQxOY/Sje7d2JdjsPbGAAMWU5A
Message-ID: <255B9BB34FB7D647A506DC292726F6E1150CF65FC5@WSMSG3153V.srv.dir.telstra.com>
References: <9A043F3CF02CD34C8E74AC1594475C7343D49137@uxcn10-tdc02.UoA.auckland.ac.nz> <FAFB3755-AFB8-4EEC-AADB-B2D39588E6A8@vigilsec.com> <810C31990B57ED40B2062BA10D43FBF51454CA@XMB111CNC.rim.net> <8122A90E-E106-4A22-BB82-6D70450816F3@vigilsec.com>
In-Reply-To: <8122A90E-E106-4A22-BB82-6D70450816F3@vigilsec.com>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Subject: Re: [Cfrg] Hash substitution in PSS
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/cfrg>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 May 2013 00:44:44 -0000

> I did not intend to pick the scab off the absent vs NULL discussion.
> My point was that a shorthand for four default values would have been
> desirable, but it is way too late.

Surely a shorthand for RSASSA-PSS-params that use the 4 default values is precisely what the use of DEFAULT in its ASN.1 definition provides.

The DER-encoding of RSSASA-PSS-params that use SHA-1, MGF1 with SHA-1, a 20-byte salt, and the 0xBC trailer byte is:

  30 00

Those 2 bytes are just as short as the DER-encoding of NULL (05 00).

--
James Manger


>> RFC 4055 says "RSASSA-PSS-params  ::=  SEQUENCE  {
>>        hashAlgorithm      [0] HashAlgorithm DEFAULT
>>                                  sha1Identifier,
>>        maskGenAlgorithm   [1] MaskGenAlgorithm DEFAULT
>>                                  mgf1SHA1Identifier,
>>        saltLength         [2] INTEGER DEFAULT 20,
>>        trailerField       [3] INTEGER DEFAULT 1  }"