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

Per Hedeland <per@tail-f.com> Fri, 28 July 2017 14:26 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 85937131FE9; Fri, 28 Jul 2017 07:26:55 -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 l_ynvAAWHtdX; Fri, 28 Jul 2017 07:26:54 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id D311E129A92; Fri, 28 Jul 2017 07:26:53 -0700 (PDT)
Received: from mars.tail-f.com (unknown [173.38.220.48]) by mail.tail-f.com (Postfix) with ESMTPSA id 6DC401AE0446; Fri, 28 Jul 2017 16:26:52 +0200 (CEST)
To: Kent Watsen <kwatsen@juniper.net>
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> <EB095C54-4E5F-4DC2-A95A-82FCCC3D5112@juniper.net>
Cc: "draft-ietf-netconf-keystore.all@ietf.org" <draft-ietf-netconf-keystore.all@ietf.org>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
From: Per Hedeland <per@tail-f.com>
Message-ID: <597B49AB.10303@tail-f.com>
Date: Fri, 28 Jul 2017 16:26:51 +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: <EB095C54-4E5F-4DC2-A95A-82FCCC3D5112@juniper.net>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/xbtjO2ZZ8IxzpdTo2cOA5gMbauI>
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 14:26:56 -0000

On 2017-07-28 13:30, Kent Watsen wrote:
> 
> 
> 
>> 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 know, this is what I always thought too, but the tool I was using told me the input was finally ok after adding the 3rd '=' on a fluke.

'mimencode' from the ancient 'metamail' package does that - i.e. it
complains (with a "warning") when the length isn't a multiple of 4, but
silently discards the partial result of decoding a 4-character chunk
with 3 trailing '=' pad-characters, as in "d===".

--Per

> Maybe the tool is broken, i'll double-check...
> 
> K. 
>