Re: [tram] New test vector for stunbis

Jonathan Lennox <jonathan@vidyo.com> Wed, 10 April 2019 16:33 UTC

Return-Path: <jonathan@vidyo.com>
X-Original-To: tram@ietfa.amsl.com
Delivered-To: tram@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 329A212037D for <tram@ietfa.amsl.com>; Wed, 10 Apr 2019 09:33:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.989
X-Spam-Level:
X-Spam-Status: No, score=-1.989 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=vidyo.com
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 j4t_qgulVkWA for <tram@ietfa.amsl.com>; Wed, 10 Apr 2019 09:33:11 -0700 (PDT)
Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B07E61203BA for <tram@ietf.org>; Wed, 10 Apr 2019 09:33:09 -0700 (PDT)
Received: by mail-qt1-x82e.google.com with SMTP id w30so3583783qta.8 for <tram@ietf.org>; Wed, 10 Apr 2019 09:33:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vidyo.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0+AP6oVr4tIc/GCn3AspbzzagZafyMM6sfhzP8g7nlo=; b=BqHbXuE0uK6MEIVorreLb4a0XpKdPtxFdBgDJ5X09loxX2NizibfTlD+lwLQwAnso2 TfqQk89ZoOFPaKHHQ7U3DmQ5fGYYpC23suOaENRB2quWv1XnEedU+x93NIn0ELLzqF+o cq0EBT1APKPizdRj+HOu24PxanzVuSfaVW8RilmTCVFnAgumWiPbaPHH8HW5HrUAOcD2 37pbC9lfEIY9+3nSwh3CtN4rbUT++Zqbw8I8Pnv9F7mKC0ortCmX6A+Fzz8y43z86d4o /ia+DIzPbFqOJ049kebTf5pQbWyuRF07l88hvsqGtp+hmU8hiUOxnpXDEqybfPYQ4XsD lzQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=0+AP6oVr4tIc/GCn3AspbzzagZafyMM6sfhzP8g7nlo=; b=Q4kHOWyYw+6p+ioGOCZRGcXDCdit2eBS1UfXf8M4RWy3baRXp4fBgs6+Rs74IT2JbP QbzQ/pZWUd28ZvgvZFksCxDKOloOk2y4L1WFTuzvq3ChJ9QG/+yR3xnsmyVun48afti/ GU1dLBWOyryqH/2tv6dDiGvkCWoeV122pgSHEh+9pbuDMjnqgFMkg/fCL8xNke3U/Akk dC77vigD/NnUy5dzKpRNBRbWm1dlfCcSZWcbovQrpcal6wJ5YrpImDWPyjdVOGBWV46u 7ibI++JK/kuGvi98isQHSI0KZR0IIrWJHNoOmfGX4AhsEto4piHeTITpaXPwR7TjP6I9 KvNQ==
X-Gm-Message-State: APjAAAUSe2LMSL9fifo36yx3BzLaBR7P8kFjrBNOelbvKMymjjVGBHkK DYJQJf0aJMPrImfo5FXnYXw4ug==
X-Google-Smtp-Source: APXvYqysU82p035+bQbpMnoiD1OvCv/smuEpzF4O0LpjYqm51iO2kSiNYn+49Te3cfBpeQgCg+hw7Q==
X-Received: by 2002:a0c:9973:: with SMTP id i48mr36706752qvd.9.1554913988511; Wed, 10 Apr 2019 09:33:08 -0700 (PDT)
Received: from [172.16.1.246] ([160.79.220.2]) by smtp.gmail.com with ESMTPSA id m129sm20738392qkb.55.2019.04.10.09.33.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 09:33:07 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\))
From: Jonathan Lennox <jonathan@vidyo.com>
In-Reply-To: <12edea4c-b376-f6f6-30c0-ee8670ee4bed@acm.org>
Date: Wed, 10 Apr 2019 12:33:06 -0400
Cc: "tram@ietf.org" <tram@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <8A91D4E6-1507-46E9-97B7-919CD534372A@vidyo.com>
References: <12edea4c-b376-f6f6-30c0-ee8670ee4bed@acm.org>
To: Marc Petit-Huguenin <petithug@acm.org>
X-Mailer: Apple Mail (2.3445.104.8)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tram/WyTBHUD6SSof2NTBNGCoIAf-Ts0>
Subject: Re: [tram] New test vector for stunbis
X-BeenThere: tram@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussing the creation of a Turn Revised And Modernized \(TRAM\) WG, which goal is to consolidate the various initiatives to update TURN and STUN." <tram.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tram>, <mailto:tram-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tram/>
List-Post: <mailto:tram@ietf.org>
List-Help: <mailto:tram-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tram>, <mailto:tram-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Apr 2019 16:33:13 -0000

My unit test agrees.

> On Apr 7, 2019, at 12:01 PM, Marc Petit-Huguenin <petithug@acm.org> wrote:
> 
> Now that IANA has allocated codepoints for stunbis, it is time to calculate the final test vector in section B.1.  It would be great is someone could redo the calculations and assert that my results are correct.  Thanks.
> 
> 
> ....
> Username: "<U+30DE><U+30C8><U+30EA><U+30C3><U+30AF><U+30B9>" and 
> "\xe3\x83\x9e\xe3\x83\x88\xe3\x83\xaa\xe3\x83\x83\xe3\x82\xaf\xe3\x82\xb9"
> (without quote) respectively before and after UsernameCasePreserved
> [RFC8265] processing
> 
> Password: "The<U+00AD>M<U+00AA>tr<U+2168>" and "TheMatrIX" (without
> quotes) respectively before and after OpaqueString [RFC8265] processing
> 
> Nonce: "bMatJos2AAACf//499k954d6OL34oL9FSTvy64sA" (without quotes)
> 
> Realm: "example.org" (without quotes)
> 
>      00 01 00 9c      Request type and message length
>      21 12 a4 42      Magic cookie
>      78 ad 34 33   }
>      c6 ad 72 c0   }  Transaction ID
>      29 da 41 2e   }
>      00 1e 00 20      USERHASH attribute header
>      4a 3c f3 8f   }
>      ef 69 92 bd   }
>      a9 52 c6 78   }
>      04 17 da 0f   }  Userhash value (32 bytes)
>      24 81 94 15   }
>      56 9e 60 b2   }
>      05 c4 6e 41   }
>      40 7f 17 04   }
>      00 15 00 29      NONCE attribute header
>      6f 62 4d 61   }
>      74 4a 6f 73   }
>      32 41 41 41   }
>      43 66 2f 2f   }
>      34 39 39 6b   }  Nonce value and padding (3 bytes)
>      39 35 34 64   }
>      36 4f 4c 33   }
>      34 6f 4c 39   }
>      46 53 54 76   }
>      79 36 34 73   }
>      41 00 00 00   }
>      00 14 00 0b      REALM attribute header
>      65 78 61 6d   }
>      70 6c 65 2e   }  Realm value (11 bytes) and padding (1 byte)
>      6f 72 67 00   }
>      00 1c 00 20      MESSAGE-INTEGRITY-SHA256 attribute header
>      e4 68 6c 8f   }
>      0e de b5 90   }
>      13 e0 70 90   }
>      01 0a 93 ef   }  HMAC-SHA256 value
>      cc bc cc 54   }
>      4c 0a 45 d9   }
>      f8 30 aa 6d   }
>      6f 73 5a 01   }
> ....
> 
> -- 
> Marc Petit-Huguenin
> Email: marc@petit-huguenin.org
> Blog: https://marc.petit-huguenin.org
> Profile: https://www.linkedin.com/in/petithug
> 
> _______________________________________________
> tram mailing list
> tram@ietf.org
> https://www.ietf.org/mailman/listinfo/tram