Re: [Tm-rid] Some updates and work on HHITs
Robert Moskowitz <rgm@labs.htt-consult.com> Tue, 20 August 2019 21:27 UTC
Return-Path: <rgm@labs.htt-consult.com>
X-Original-To: tm-rid@ietfa.amsl.com
Delivered-To: tm-rid@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3742E120110 for <tm-rid@ietfa.amsl.com>; Tue, 20 Aug 2019 14:27:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 BIc1PbHGSJ6N for <tm-rid@ietfa.amsl.com>; Tue, 20 Aug 2019 14:27:46 -0700 (PDT)
Received: from z9m9z.htt-consult.com (z9m9z.htt-consult.com [23.123.122.147]) (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 2DE791200A3 for <tm-rid@ietf.org>; Tue, 20 Aug 2019 14:27:46 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by z9m9z.htt-consult.com (Postfix) with ESMTP id 1E3DB6210F; Tue, 20 Aug 2019 17:27:44 -0400 (EDT)
X-Virus-Scanned: amavisd-new at htt-consult.com
Received: from z9m9z.htt-consult.com ([127.0.0.1]) by localhost (z9m9z.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XTrNUrt9jjxs; Tue, 20 Aug 2019 17:27:33 -0400 (EDT)
Received: from lx140e.htt-consult.com (unknown [192.168.160.12]) (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by z9m9z.htt-consult.com (Postfix) with ESMTPSA id CA9A960964; Tue, 20 Aug 2019 17:27:32 -0400 (EDT)
To: "Wiethuechter, Adam" <adam.wiethuechter@axenterprize.com>
Cc: "tm-rid@ietf.org" <tm-rid@ietf.org>
References: <d04d866c-24cc-eb6c-219f-9eb511160a87@labs.htt-consult.com> <CA+r8TqX52fyPpRBW6=UnnqV19qtSPc9u5gqAs7YoeKhz2aY67w@mail.gmail.com> <CA+r8TqWZmGJGhJjreNfC+k8GwmDPF7Ds+LguJbwtuRRvc2Lkow@mail.gmail.com>
From: Robert Moskowitz <rgm@labs.htt-consult.com>
Message-ID: <93528895-aacb-d9cc-ea4d-0c8661ea17f7@labs.htt-consult.com>
Date: Tue, 20 Aug 2019 17:26:59 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
MIME-Version: 1.0
In-Reply-To: <CA+r8TqWZmGJGhJjreNfC+k8GwmDPF7Ds+LguJbwtuRRvc2Lkow@mail.gmail.com>
Content-Type: multipart/mixed; boundary="------------E4A5D90875C5AB5F6D557DE5"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/tm-rid/WUBOn5mZV7M1HA5b22a27ZQQDB4>
Subject: Re: [Tm-rid] Some updates and work on HHITs
X-BeenThere: tm-rid@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Trustworthy Multipurpose RemoteID <tm-rid.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tm-rid>, <mailto:tm-rid-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tm-rid/>
List-Post: <mailto:tm-rid@ietf.org>
List-Help: <mailto:tm-rid-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tm-rid>, <mailto:tm-rid-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Aug 2019 21:27:49 -0000
On 8/20/19 4:39 PM, Wiethuechter, Adam wrote: > Everyone, > > Attached is the latest version of the HHIT generation script > (2019.08a13) along with a script to search for duplicate HITs/HHITs > when a data set is generated. > > Pertaining to the last update here; > - We now use ORCHID to generate both HITs and HHITs from the key-pair > generated > - A data set can be created (default size of 1000000, can be changed > in script), this will output a text file called "hhit_set.txt" > containing the pairs of HIT/HHITs to feed into the duplicate tester > program. > - General clean up and documentation of the script for better > understanding > - Disabled the DER format for public key generation and switched to > PUB format as DER could not be opened in the script without errors. > > I generated a 1M data set (by request of Bob) with the scripts and > searched for duplicate HITs and HHITs. None were found in my data set. Per the collision formula, the probability of collision of 1M in a potential population of 2^64 is: 2.7x10^-6 % That is basically a zero probability. IF you had collisions then I would be suspicious of some underlying assumption. No collisions is good. 10M takes the probability down to: 2.7x10^-4 %; still basically zero. This means that a Registry should only need a single assigned HDA value to support a LARGE number of customers. Plus the use of the HIP registration protocol will have the HDA rejecting duplicate HHITs, operating on a first come basis. Thus even if there were an attack against the small hash piece, an attacker would not 'get far' as the registered HI SHOULD be in the Registry. I will soon be posting here on work items. Bob > > To test yourself run the following (everything generated will drop > into the same directory as the scripts, so be careful): > $ python3 hhit-gen.py -n <name> -p <password> --dataset y > $ python3 hhit-dup.py > > The duplication tester script will output 2 files once complete: > - "hit_dups.txt" = a file containing the duplicate records for HITs > - "hhit_dups.txt" = a file containing the duplicate records for HHITs > > For anyone curious I also have my data set tarred up (its 212.4MB) > that I will offer up if anyone wishes to have it to confirm my results > in their own way. Just email me and I will send it to you directly. > > On Wed, Aug 14, 2019 at 2:28 PM Wiethuechter, Adam > <adam.wiethuechter@axenterprize.com > <mailto:adam.wiethuechter@axenterprize.com>> wrote: > > All, > > Attached is a quick Python3 script I created using Bob's email. > It does not handle the actual creation of the HHIT yet, but does > perform the operations for the key generation. > > On Wed, Aug 14, 2019 at 8:50 AM Robert Moskowitz > <rgm@labs.htt-consult.com <mailto:rgm@labs.htt-consult.com>> wrote: > > Just to let people here know I have been working away with some > groundwork, expanding on the prior list of documents and > peripheral things. > > Right now I am working on what a eddsa pki would be that would > back up > the proposed HHITs and various repositories. For this I want to > generate some testing HHITs. > > I will use openssl from my draft-moskowitz-eddsa-pki and HHIT > format > from draft-moskowitz-hierarchical-hip (sec 4). > > I make the ed25519 keypair with: > > openssl genpkey -aes256 -algorithm ed25519 -outform pem -out > entity.key.pem > > Note the keypair is encrypted; it contains the private key. > This can be > viewed with: > > openssl pkey -inform pem -in entity.key.pem -text -noout > > The public key can be extracted in DER format with: > > openssl pkey -in entity.key.pem -out entity.pub.der -outform > DER -pubout > > For the HHIT: > > HIT SUITE ID = 4 > RAA = 10 > HDA = 20 > > It would be great to have this as a python or perl script. > That way I > may learn something along the way. > > Inputs are: > > key file name > key password > HIT Suite ID > RRA > HDA > > Output should be: > > the HHIT in 128bit binary to some file > the HHIT in ipv6 : display format > > Thanks on any help. I will be posting this to both the tm-rid > list and > the hipsec list. > > Bob > > > -- > Tm-rid mailing list > Tm-rid@ietf.org <mailto:Tm-rid@ietf.org> > https://www.ietf.org/mailman/listinfo/tm-rid > > > > -- > 73's, > Adam T. Wiethuechter > > > > -- > 73's, > Adam T. Wiethuechter -- Standard Robert Moskowitz Owner HTT Consulting C:248-219-2059 F:248-968-2824 E:rgm@labs.htt-consult.com There's no limit to what can be accomplished if it doesn't matter who gets the credit
- [Tm-rid] Some updates and work on HHITs Robert Moskowitz
- Re: [Tm-rid] Some updates and work on HHITs Wiethuechter, Adam
- Re: [Tm-rid] Some updates and work on HHITs Wiethuechter, Adam
- Re: [Tm-rid] Some updates and work on HHITs Robert Moskowitz
- Re: [Tm-rid] Some updates and work on HHITs Michael Richardson
- Re: [Tm-rid] Some updates and work on HHITs Robert Moskowitz
- Re: [Tm-rid] Some updates and work on HHITs Michael Richardson