Re: [yang-doctors] [Netconf] Yangdoctors last call review of draft-ietf-netconf-keystore-02

Per Hedeland <per@tail-f.com> Fri, 28 July 2017 11:06 UTC

Return-Path: <per@tail-f.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3314F1322C0; Fri, 28 Jul 2017 04:06:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, 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 WFBaABvY2_b2; Fri, 28 Jul 2017 04:05:59 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id A1ABE1322BF; Fri, 28 Jul 2017 04:05:59 -0700 (PDT)
Received: from mars.tail-f.com (unknown [173.38.220.48]) by mail.tail-f.com (Postfix) with ESMTPSA id 636A51AE0446; Fri, 28 Jul 2017 13:05:58 +0200 (CEST)
To: "netconf@ietf.org" <netconf@ietf.org>
References: <150028100874.32703.14161403810529927281@ietfa.amsl.com> <B1AC6895-5681-48F8-B7E7-418118120B4E@juniper.net> <20170720165942.GB21506@elstar.local> <F5E9973C-FCCD-4A96-B0D3-8C735CE911D3@juniper.net> <597B0D41.1040400@tail-f.com> <597B0EB8.7090805@tail-f.com> <20170728103646.GA29267@elstar.local>
From: Per Hedeland <per@tail-f.com>
Cc: Kent Watsen <kwatsen@juniper.net>, "draft-ietf-netconf-keystore.all@ietf.org" <draft-ietf-netconf-keystore.all@ietf.org>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Message-ID: <597B1A95.7020501@tail-f.com>
Date: Fri, 28 Jul 2017 13:05:57 +0200
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
MIME-Version: 1.0
In-Reply-To: <20170728103646.GA29267@elstar.local>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/nw7m3ryOD4XBT-_O_2kX7jNswsQ>
Subject: Re: [yang-doctors] [Netconf] Yangdoctors last call review of draft-ietf-netconf-keystore-02
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Jul 2017 11:06:01 -0000

On 2017-07-28 12:36, Juergen Schoenwaelder wrote:
> On Fri, Jul 28, 2017 at 12:15:20PM +0200, Per Hedeland wrote:
>> On 2017-07-28 12:09, Per Hedeland wrote:
>>> On 2017-07-28 04:12, Kent Watsen wrote:
>>>>
>>>> Here's another idea, it turns out that the string "base64encoded==="
>>>> is itself a valid base64 string.
>>>
>>> Nice idea, but actually it isn't - i.e. there does not exist an octet
>>> sequence that will encode to that string, and a decoder "should" reject
>>> it as invalid. But maybe that is a feature?:-)
>>>
>>> (By definition, there can be at most 2 trailing '=' characters in the
>>> encoding. You can have "base64encode" or e.g. "base64encodedA==", but I
>>> guess neither is as appealing...)
>>
>> "base64encoding==" is also OK...
>>
> 
> base64encodedvalue== also seems to be OK

Yes, as far as I can see, any string that

a) is restricted to the alphabet
b) is a multiple of 4 characters long
c) has 0, 1, or 2 '=' characters at the end (only)

is valid. But it seemed there was a length restriction in the particular
usage considered here. "base64==" is also OK.:-)

--Per