Re: [Sidrops] Signed Object signed with Ed25519 (RFC 8419 proof-of-concept)
Job Snijders <job@fastly.com> Mon, 04 September 2023 16:36 UTC
Return-Path: <job@fastly.com>
X-Original-To: sidrops@ietfa.amsl.com
Delivered-To: sidrops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F35E6C15107D for <sidrops@ietfa.amsl.com>; Mon, 4 Sep 2023 09:36:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=fastly.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AwB_fX4m77aU for <sidrops@ietfa.amsl.com>; Mon, 4 Sep 2023 09:36:19 -0700 (PDT)
Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 34AB7C151071 for <sidrops@ietf.org>; Mon, 4 Sep 2023 09:36:19 -0700 (PDT)
Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9a64619d8fbso222830466b.0 for <sidrops@ietf.org>; Mon, 04 Sep 2023 09:36:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1693845377; x=1694450177; darn=ietf.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ZjinYMd+Q8cdrXZJqhK5rdlhrkrtNO5oKo27P144zaw=; b=P2uZndnXJq+rOUJpKUE/lQu6bd7Vc1zGu9142Sa2tgH+Oj3SNyLLNsCS2/JpYy5Omg SWlhLuW87izUUNIyJx1qbdN3NsHZmea0+vawUvKSuRJo0fivc5x47zJ6GEhzMOd9MPzm h9VRHzHQhmxDPgE+GKKOPbJtAHpf3178WLBFw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693845377; x=1694450177; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZjinYMd+Q8cdrXZJqhK5rdlhrkrtNO5oKo27P144zaw=; b=Kz76IvnBRs5YDngnj3Rvp5josFu40Oztnyx81RrEnGisTR/Vc8CYwjBBo2JYTypLqw uwpxNoyNAPxbHIZi7aOn6KW++WvtO8MdXUG1CfT83iuTj3XSTibwXxGOiNkOlUDfRree evekO5ZyMChSaEfSOSwJxA6JxmB5IlwuSg+vWZoV28gyA2YYcbYwqFRTIIaooieG7Nqm P0jT1PbQvROrqrRKz4RHiw4S9yC1cyYy2K8a8Np2SIDkYVZowJVJOP+Xfu7azxkllyv5 7k9ev6oRmSeRjpY3G4YUcE+A2UY/N7/UyX4HZtfwbnhOgl7GGYwCmCCq9pHrQGgd0Gdd 78dQ==
X-Gm-Message-State: AOJu0Yz3dXKBAY0CAZW6czvPwYRb4Mpz4H/8IJ3ECfVdBPIGLoVYw1mK HimelYwVdno8ZwK2821PiJo5Pw==
X-Google-Smtp-Source: AGHT+IFzxNO+Tg+ae/+s4RweyztVBXmYs7sbHbmfWRaEi+JrFDtHoUgfWVn+xZYHBsghhsm4AKO26w==
X-Received: by 2002:a17:907:272a:b0:992:7295:61c9 with SMTP id d10-20020a170907272a00b00992729561c9mr8291616ejl.69.1693845377506; Mon, 04 Sep 2023 09:36:17 -0700 (PDT)
Received: from snel ([2a10:3781:276:3:16f6:d8ff:fe47:2eb7]) by smtp.gmail.com with ESMTPSA id g2-20020a1709064e4200b009a5f7fb51d1sm6319119ejw.40.2023.09.04.09.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Sep 2023 09:36:17 -0700 (PDT)
Date: Mon, 04 Sep 2023 18:36:15 +0200
From: Job Snijders <job@fastly.com>
To: Russ Housley <housley@vigilsec.com>
Cc: sidrops@ietf.org
Message-ID: <ZPYHf4jjmMvzuxd1@snel>
References: <ZPS/VK+6Q8a4dHgA@snel> <C61DCBC1-E2E5-4A70-A980-687BAFEDCD8B@ripe.net> <ZPW+682GaAFXymLo@snel> <B74CB6F2-F299-4750-A412-2EEADD0CCFA5@vigilsec.com> <ZPYCTXx5NUZB2hI4@snel>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <ZPYCTXx5NUZB2hI4@snel>
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/sidrops/ulImRWmYKjAIDmsAK70aSft8KvI>
Subject: Re: [Sidrops] Signed Object signed with Ed25519 (RFC 8419 proof-of-concept)
X-BeenThere: sidrops@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: A list for the SIDR Operations WG <sidrops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sidrops>, <mailto:sidrops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sidrops/>
List-Post: <mailto:sidrops@ietf.org>
List-Help: <mailto:sidrops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sidrops>, <mailto:sidrops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Sep 2023 16:36:24 -0000
On Mon, Sep 04, 2023 at 06:14:05PM +0200, Job Snijders wrote: > For comparison I generated a secp256r1 variant of the same ASPA object, > it clocks in as the second smallest: > > RSA EE w/ RSA CA: 1701 bytes [1] > secp256k1 w/ sha256 w/ RSA CA: 1463 bytes [3] > secp256r1 w/ sha256 w/ RSA CA: 1284 bytes (attached) > Ed25519 w/ sha512 w/ RSA CA: 1281 bytes [2] > > The 179 byte difference between secp256k1 and secp256r1 is caused by the > secp256k1 public key being encoded differently. The secp256k1 public key > is encoded in 'explicit form', this means that in addition to the 64 > byte public key, also a large prime, A & B fields, an uncompressed > Generator field, and an Order field are encoded. Ah, upon further inspection, the secp256k1 parameters explicitly encoded turned out to be optional. The final results: EE MD CA size decrease (compared to RSA) RSA sha256 RSA: 1701 bytes 00.0% (note: the current status) secp256r1 sha256 RSA: 1284 bytes 24.5% secp256k1 sha256 RSA: 1282 bytes 24.6% Ed25519 sha512 RSA: 1281 bytes 24.7% (note: SHA-512 instead of 256) Are there any other signing/hashing algorithms people would suggest I try to generate a test object with? Kind regards, Job
- [Sidrops] Signed Object signed with Ed25519 (RFC … Job Snijders
- Re: [Sidrops] Signed Object signed with Ed25519 (… Ties de Kock
- Re: [Sidrops] Signed Object signed with Ed25519 (… Job Snijders
- Re: [Sidrops] Signed Object signed with Ed25519 (… Ties de Kock
- Re: [Sidrops] Signed Object signed with Ed25519 (… Job Snijders
- Re: [Sidrops] Signed Object signed with Ed25519 (… Ties de Kock
- Re: [Sidrops] Signed Object signed with Ed25519 (… Job Snijders
- Re: [Sidrops] Signed Object signed with Ed25519 (… Russ Housley
- Re: [Sidrops] Signed Object signed with Ed25519 (… Job Snijders
- Re: [Sidrops] Signed Object signed with Ed25519 (… Job Snijders
- Re: [Sidrops] Signed Object signed with Ed25519 (… Russ Housley