[dane] (draft-ietf-dane-smime) SHA-224 not in CryptoAPI

Sean Leonard <dev+ietf@seantek.com> Wed, 07 January 2015 05:21 UTC

Return-Path: <dev+ietf@seantek.com>
X-Original-To: dane@ietfa.amsl.com
Delivered-To: dane@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 44A8C1A1A33 for <dane@ietfa.amsl.com>; Tue, 6 Jan 2015 21:21:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.702
X-Spam-Level:
X-Spam-Status: No, score=-0.702 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001] autolearn=ham
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 OKrl9vPQlxYR for <dane@ietfa.amsl.com>; Tue, 6 Jan 2015 21:21:34 -0800 (PST)
Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C82F71A1A16 for <dane@ietf.org>; Tue, 6 Jan 2015 21:21:34 -0800 (PST)
Received: from [192.168.123.7] (unknown [23.241.1.22]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 8EACF22E261 for <dane@ietf.org>; Wed, 7 Jan 2015 00:21:33 -0500 (EST)
Message-ID: <54ACC218.8070507@seantek.com>
Date: Tue, 06 Jan 2015 21:20:24 -0800
From: Sean Leonard <dev+ietf@seantek.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: dane@ietf.org
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/dane/V6pcVC2lI2E__8d8sO4U6CvG2QE
Subject: [dane] (draft-ietf-dane-smime) SHA-224 not in CryptoAPI
X-BeenThere: dane@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DNS-based Authentication of Named Entities <dane.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dane>, <mailto:dane-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dane/>
List-Post: <mailto:dane@ietf.org>
List-Help: <mailto:dane-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dane>, <mailto:dane-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jan 2015 05:21:37 -0000

Hello:

I would like to point out that SHA-224 is not a good choice for a fixed 
hash algorithm. SHA-224 is not implemented in Microsoft CryptoAPI / 
Cryptography Next Generation, which means that Windows apps (clients and 
servers) will have a more difficult time implementing this thing. 
Reference: <http://msdn.microsoft.com/library/bb931357>. I suggest 
sticking with SHA-256.

Looking back at the archives, it appears that a motivator for SHA-224 is 
that it is "short" and therefore fits in a DNS label with hex encoding. 
I do not buy this argument. Base32 encoding works great for SHA-256.

Since DNS labels are octets anyway, if you want "short" I do not see a 
big deal with putting 32 octets in the label. Pushback on the grounds 
that "it's not a hostname" and "watch out for case folding" are moot 
because "_smimecert" is not a valid hostname either: that's why "_" was 
chosen for SRV records and their kin. It's not a vanity contest. Maybe 
there are other considerations; I am not a DNS ops expert. Suffice to 
say, base32 would work just fine.

(As an implementer, I have other various opinions about this work but 
don't feel like bringing them up at this time.)

Sean