Re: [DNSOP] TSIG - add presentation format for humans.

Mark Andrews <marka@isc.org> Wed, 21 November 2018 22:57 UTC

Return-Path: <marka@isc.org>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 520D1130DCF for <dnsop@ietfa.amsl.com>; Wed, 21 Nov 2018 14:57:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, 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 suKo4MU2D6h9 for <dnsop@ietfa.amsl.com>; Wed, 21 Nov 2018 14:57:55 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AE6E6130DCB for <dnsop@ietf.org>; Wed, 21 Nov 2018 14:57:55 -0800 (PST)
Received: from zmx1.isc.org (zmx1.isc.org [149.20.0.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.pao1.isc.org (Postfix) with ESMTPS id 77F9B3ABF23; Wed, 21 Nov 2018 22:57:55 +0000 (UTC)
Received: from zmx1.isc.org (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTPS id 51E5A160047; Wed, 21 Nov 2018 22:57:55 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1]) by zmx1.isc.org (Postfix) with ESMTP id 3824816006A; Wed, 21 Nov 2018 22:57:55 +0000 (UTC)
Received: from zmx1.isc.org ([127.0.0.1]) by localhost (zmx1.isc.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id JDXnqBlG92Xn; Wed, 21 Nov 2018 22:57:55 +0000 (UTC)
Received: from [172.30.42.67] (c27-253-115-14.carlnfd2.nsw.optusnet.com.au [27.253.115.14]) by zmx1.isc.org (Postfix) with ESMTPSA id 8168A160047; Wed, 21 Nov 2018 22:57:54 +0000 (UTC)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Mark Andrews <marka@isc.org>
In-Reply-To: <CAKW6Ri71QqmDV7Ww5x03fu1SKyPpAUZDOh4DD_ZOLzHEv=Fy1A@mail.gmail.com>
Date: Thu, 22 Nov 2018 09:57:52 +1100
Cc: IETF DNSOP WG <dnsop@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <154A9727-C86E-40F5-A867-BBEF647E3890@isc.org>
References: <EA44E293-B066-4753-B73D-91F1A8EBAA26@isc.org> <CAKW6Ri71QqmDV7Ww5x03fu1SKyPpAUZDOh4DD_ZOLzHEv=Fy1A@mail.gmail.com>
To: Dick Franks <rwfranks@acm.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/v_ZlrntiEeYQ6NmR7a6b-iFf8_U>
Subject: Re: [DNSOP] TSIG - add presentation format for humans.
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 21 Nov 2018 22:57:58 -0000

and BIND does

.			0	ANY	TSIG	hmac-md5.sig-alg.reg.int. 1542840965 300 16 T1lmN3NSeGQvxA0xXiAL6g== 57713 NOERROR 0 

with hex for the other data if present.

> On 22 Nov 2018, at 9:51 am, Dick Franks <rwfranks@acm.org> wrote:
> 
> On Wed, 21 Nov 2018 at 21:31, Mark Andrews <marka@isc.org> wrote:
> 
> --
> 
> Net::DNS has offered this information for many years in the form of comments,
> which avoids a disaster if inadvertently ingested by a parser.
> 
> $packet->print;
> 
> ;; HEADER SECTION
> ;;    id = 51343
> ;;    qr = 0    aa = 0    tc = 0    rd = 0    opcode = QUERY
> ;;    ra = 0    z  = 0    ad = 0    cd = 0    rcode  = NOERROR
> ;;    qdcount = 1    ancount = 0    nscount = 0    arcount = 1
> ;;    do = 0
> 
> ;; QUESTION SECTION (1 record)
> ;; query.example.    IN    A
> 
> ;; ANSWER SECTION (0 records)
> 
> ;; AUTHORITY SECTION (0 records)
> 
> ;; ADDITIONAL SECTION (1 record)
> ; hmac-sha1.example.    TSIG    
> ;    algorithm:    HMAC-SHA1
> ;    time signed:    1542837913    fudge:    300
> ;    signature:    364892b4af8d131a647157838c541d2606d30be4
> ;    original id:    51343
> ;            NOERROR    
> 
> 
> --Dick
> 

-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742              INTERNET: marka@isc.org