Re: [dsfjdssdfsd] Any plans for drafts or discussions on here?

Paul Hoffman <paul.hoffman@vpnc.org> Wed, 22 January 2014 22:15 UTC

Return-Path: <paul.hoffman@vpnc.org>
X-Original-To: dsfjdssdfsd@ietfa.amsl.com
Delivered-To: dsfjdssdfsd@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 703781A04C2 for <dsfjdssdfsd@ietfa.amsl.com>; Wed, 22 Jan 2014 14:15:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.347
X-Spam-Level:
X-Spam-Status: No, score=-1.347 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_MISMATCH_COM=0.553] autolearn=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 L-USXjSlfOTF for <dsfjdssdfsd@ietfa.amsl.com>; Wed, 22 Jan 2014 14:15:39 -0800 (PST)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id 822B61A04A2 for <dsfjdssdfsd@ietf.org>; Wed, 22 Jan 2014 14:15:09 -0800 (PST)
Received: from [165.227.249.247] (sn80.proper.com [75.101.18.80]) (authenticated bits=0) by hoffman.proper.com (8.14.7/8.14.7) with ESMTP id s0MLswYN007404 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 22 Jan 2014 14:54:59 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: hoffman.proper.com: Host sn80.proper.com [75.101.18.80] claimed to be [165.227.249.247]
Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\))
Content-Type: text/plain; charset="windows-1252"
From: Paul Hoffman <paul.hoffman@vpnc.org>
X-Priority: 3 (Normal)
In-Reply-To: <ebd5a19a1b00035e1493f019b5ca09e7.squirrel@www.trepanning.net>
Date: Wed, 22 Jan 2014 14:15:06 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <9CEB58EF-1102-458A-A215-AE4822C60FEE@vpnc.org>
References: <52DD996F.3040708@cs.tcd.ie> <CAF4+nEHEWaSr3HMuGtQ=vQzuuhkTo2uNpedUTNgmT5NsWRsTfA@mail.gmail.com> <30316745-8091-46AD-95A1-407757489FF9@vpnc.org> <e309a1b8c4a77ce1da4adfab1fc1db37.squirrel@www.trepanning.net> <F6B381C1-089D-4723-9A2C-7937C6C74EFB@vpnc.org> <eaa6cc3f162888d40834d61907256a26.squirrel@www.trepanning.net> <7F55125F-1669-4A36-A4A5-C1655CDCE77A@vpnc.org> <ebd5a19a1b00035e1493f019b5ca09e7.squirrel@www.trepanning.net>
To: Dan Harkins <dharkins@lounge.org>
X-Mailer: Apple Mail (2.1827)
Cc: dsfjdssdfsd@ietf.org
Subject: Re: [dsfjdssdfsd] Any plans for drafts or discussions on here?
X-BeenThere: dsfjdssdfsd@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "The dsfjdssdfsd list provides a venue for discussion of randomness in IETF protocols, for example related to updating RFC 4086." <dsfjdssdfsd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dsfjdssdfsd>, <mailto:dsfjdssdfsd-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dsfjdssdfsd/>
List-Post: <mailto:dsfjdssdfsd@ietf.org>
List-Help: <mailto:dsfjdssdfsd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dsfjdssdfsd>, <mailto:dsfjdssdfsd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 22 Jan 2014 22:15:40 -0000

On Jan 22, 2014, at 12:29 PM, Dan Harkins <dharkins@lounge.org> wrote:

> On Wed, January 22, 2014 11:16 am, Paul Hoffman wrote:
>> On Jan 22, 2014, at 10:40 AM, Dan Harkins <dharkins@lounge.org> wrote:
>> 
>>> To minimize the possibility of someone borking their DRBG
>>> implementation
>>> we can include some test vectors-- instantiating with A produces state
>>> of
>>> B; reseeding of state B with C produces state D; generating with state D
>>> produces E, etc.
>> 
>> If we could be sure that there was no way for the mechanisms needed to
>> test those vectors could possibly appear in an implementation, that would
>> be great. If we can't be sure of that, we are proposing an implementer
>> include something that could cause a catastrophic failure if those inputs
>> are accidentally left in.
> 
>  That seems like an absurdly high bar-- that there is no way someone
> could so something demonstrably stupid. We use test vectors when
> specifying things like HKDF or AES-<pick your mode> and no one
> seems to generate a function that only accepts those inputs and only
> produces the specified outputs.

Note the difference with "HKDF or AES-<pick your mode>" and a DBRG. In the former case, if they only accepted the test vectors for input, they would never interoperate. In the latter case, if they only accepted those inputs, they generator would still work just fine; it would also be completely predictable.

> I really don't think people will suddenly
> start  hard-coding test vectors into code now.

They already frequently do exactly that. I have seen multiple implementations have a FIPS 140 self-test mode built in.

> 
>> Regardless, that's not what Don's draft does.
> 
>  I'm still hoping that an Informational RFC on a good DRBG will be
> generated.

In your mind, who is the intended reader? Implementers of the good DRBG in an OS, or in an application, or both?

>>> The more people that implement anything will increase the probability
>>> of
>>> a broken implementation somewhere, I definitely agree. But it is an
>>> accepted
>>> economic truth that relying on a single source for anything is a bad
>>> idea.
>> 
>> That seems like a strawman: who says that there is a "single source" of
>> ideas for how to implement randomness? Three large server OSs (Linux,
>> FreeBSD, Windows) all do it differently.
> 
>  The single source is "your OS".

Ah, got it. Are you saying "if you are going to re-implement crypto primitives and not trust your OS, and one of the ones you are re-implementing is the DBRG, here is a best practice for how to do it"?

> While there are 3 large server OSs, there
> is no single application that can obtain randomness from all three since
> there is no application that runs on all of them (and my experience is
> that a single linux application won't necessarily work from version X of
> the OS to version Y-- hell, sometimes the source won't even compile).
> 
>  And you know, the "if we could be sure there was no way…" thing works
> both ways, especially regarding a large (monopoly) OS whose track
> record on security and code quality is not perfect.

Fully agree. We should definitely not say "X is a best practice for DBRG" where X is a single value.