[CFRG] Re: BLAKE3 I-D
Jack O'Connor <oconnor663@gmail.com> Wed, 21 August 2024 20:57 UTC
Return-Path: <oconnor663@gmail.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 83551C14F6B5; Wed, 21 Aug 2024 13:57:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.856
X-Spam-Level:
X-Spam-Status: No, score=-1.856 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 (2048-bit key) header.d=gmail.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 9j37DLl2-4Pm; Wed, 21 Aug 2024 13:57:03 -0700 (PDT)
Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9DAF0C14F683; Wed, 21 Aug 2024 13:57:03 -0700 (PDT)
Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3db16a98d16so62569b6e.0; Wed, 21 Aug 2024 13:57:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724273822; x=1724878622; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7Vh/wSK5uk1+uaVUBeAuBEB+MXOqxZTsa3tM090b2HA=; b=h1RHNrRCiqr75szHrC3p7BevTMvF5kkuEUFeGHQrlYFuqaBANsdb7i3lPs2glFCOVH UYNv1sMdovKgHpwWrWjhTGNII4CSZV6Q82VgpzCWg4AmwaAQojtC9Fqrn4PNuf8R/owY 0qrQqYcWZnTWwwDbOgPCcDLnEd/XxIieNhq9JPV6mXBcs2hJD/bXMPbHPIbTNa6VhLm6 Bclz5xKeugW2yN76P86EHLPl7ZWmi6+VflIdH4Fg0JG3Xylm8uBHHSJBuiktYQ0B97nF x3dVoP14rl+MWKp6/twWusCe5qj6QYqyZw5dyCrdNt9HqOvuPK/nrIXSxOS12ap+PfBh Jrfw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724273822; x=1724878622; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7Vh/wSK5uk1+uaVUBeAuBEB+MXOqxZTsa3tM090b2HA=; b=dCLPgwfbyvzLNHvyuPZ0m+s/J0Ih1XMi55Efr1H1nBFIHPni4kTl+SjUs2NQVBP77v yzTQ+TgOHZhUl6OmWITfuoy71g72vEwooyEoPHnogGNVCVOUAM4KPwTuj66l1P2cnJSr qmoI8Zb4DYNygrGEltx60ClIymP6sUSoOiTKC468HO5FSXqvRhI6IgqOtUOH653anGz+ YFqk7DBhaHVLRzxVm/Bsv+GePFvlYFqyPBVtIyoSdXJQbPI3Y/XecRX/Fm7/hNdHkk9D zzsvGbPIOHV4/ykyclIZA3PnvL5q9dBX/iKjbRJQpWt7J44pXOL3MzTqdrHSRdX1onMM iGYA==
X-Forwarded-Encrypted: i=1; AJvYcCUquSfu9jrAhdJ3pkJQpa1Pz18/TkB9jMcoStzcFBszaIAl/92CTEVfyASYgY6RWyV8E98e@ietf.org
X-Gm-Message-State: AOJu0YzcieSQ0PA+tSOzMf4i3PSIgF9DRCK3TQpYQ2lYp9tfvTPoNQee ZIPqVQ6O3tw/rQMjzgO+5Wwsv8G3BocLn/4MnsEq8/WcgMHwMWvlQglAvkfHs9+LjzSXhyMjK7F gHFEnHBbc0Bv0H3TM7UFYePTlUB3ZxBO5
X-Google-Smtp-Source: AGHT+IG12g7dDt/+qTmWmXQXnTUi+dMbp71JgwbhgEHII24ODrjB4SOlMPLklkEBbyZOQTROtKORxm7s2jGuIHFeyNU=
X-Received: by 2002:a05:6808:2dcb:b0:3d9:4163:654f with SMTP id 5614622812f47-3de1957ab91mr5177200b6e.32.1724273822458; Wed, 21 Aug 2024 13:57:02 -0700 (PDT)
MIME-Version: 1.0
References: <CAGiyFdfKZ1qsPR62kb8M_EqfGOfuU4nkEY4JjLCwBb_JOZdxOA@mail.gmail.com> <CAMr0u6kpcRvsifS3GRX0LNCD1LODo_pePZo51K7okfQtatEgNA@mail.gmail.com> <CAGiyFdfAFT4HzxNLB4QKdGs8F8QD-y5LmMpnH=C+O8+2XF8eBQ@mail.gmail.com> <CAG2Zi20x1WvGH3FdhOW0HjpDfJhgfnSJUvXsoqywgn4vy_1eGA@mail.gmail.com> <CA+6di1kw4rPcseBUfAc=kTLbQSXGyph9wHZV-fn9CEg5KjOkgA@mail.gmail.com> <CAG2Zi21v9pDu_EOB1aOyFwsJ+ztoZ5tnk7Dimhap7xGMryJttQ@mail.gmail.com> <CAGiyFdeUaYaKfDwe1xyRQmB1svW3OBpCRXKvOnA-hcyi5zec-w@mail.gmail.com> <CAG2Zi2277O_aJhY1v5N6vGFK1_TPFHQ5w89RJgmzfbSBmGhmcw@mail.gmail.com> <CAFzKZmzfRyYJ4O_9t7fWTnUvZ5rRvGmKN1ETs0+1YrY5Men-fQ@mail.gmail.com>
In-Reply-To: <CAFzKZmzfRyYJ4O_9t7fWTnUvZ5rRvGmKN1ETs0+1YrY5Men-fQ@mail.gmail.com>
From: Jack O'Connor <oconnor663@gmail.com>
Date: Wed, 21 Aug 2024 13:56:36 -0700
Message-ID: <CA+6di1mDaps1mo9MnWqUD57UVjcKg9c79gKXVUj3rz0YG_EckQ@mail.gmail.com>
To: Chris Barber <cbarbernash@gmail.com>
Content-Type: multipart/alternative; boundary="000000000000aeeb43062037c837"
Message-ID-Hash: VBBQH54UTNE7WUGPOVV3DWZ4MFOLUTEF
X-Message-ID-Hash: VBBQH54UTNE7WUGPOVV3DWZ4MFOLUTEF
X-MailFrom: oconnor663@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-cfrg.irtf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: cfrg-chairs@ietf.org, cfrg@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [CFRG] Re: BLAKE3 I-D
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/4lTC7KYemvIhBov3cYKAiECiRVg>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Owner: <mailto:cfrg-owner@irtf.org>
List-Post: <mailto:cfrg@irtf.org>
List-Subscribe: <mailto:cfrg-join@irtf.org>
List-Unsubscribe: <mailto:cfrg-leave@irtf.org>
> What properties does BLAKE3 have that TurboSHAKE doesn't? "it's already used a lot in the wild" can be sufficient to justify a specification. I wrote a bit about the properties of BLAKE3 earlier in this thread, but I screwed up my list membership, and my email didn't make it through to everyone. JP copied it in a reply here: https://mailarchive.ietf.org/arch/msg/cfrg/zmoJ6Z4NO8R4ts9JmkXv_hQWrjY. Regarding adoption in the wild, BLAKE3 is currently used by LLVM, Bazel, OpenZFS, IPFS, and apparently Tekken 8 <https://twitter.com/rodarmor/status/1751567502050771189>. We keep an incomplete list on GitHub <https://github.com/BLAKE3-team/BLAKE3/?tab=readme-ov-file#adoption--deployment> . - Jack On Wed, Aug 21, 2024 at 9:51 AM Chris Barber <cbarbernash@gmail.com> wrote: > Dear Chris, > > You are comparing specific implementations on a particular CPU, not the > algorithms themselves. The "sha3" library you are using is not optimized > and may not accurately reflect the performance of TurboSHAKE compared to, > for example, XKCP. In software, the performance of BLAKE3 and > TurboSHAKE/KT12 is theoretically very close but highly dependent on the > implementation in practice. > > Since this discussion is about adoption, I believe it would be more > relevant to compare the algorithms themselves. What properties does BLAKE3 > have that TurboSHAKE doesn't? "it's already used a lot in the wild" can be > sufficient to justify a specification. > > On Thu, Aug 15, 2024 at 11:07 PM Christopher Patton <cpatton= > 40cloudflare.com@dmarc.ietf.org> wrote: > >> Hi all, >> >> Before adopting BLAKE3, I think it would be useful to see how much of a >> difference it would make in our applications. I would suggest looking >> through RFCs published by CFRG and assess how performance would change if >> they could have used BLAKE3. Off the top of my head: >> - RFC 9180 - HPKE (replace HKDF?) >> - draft-irtf-cfrg-opaque - OPAQUE >> - RFC 9380 - hashing to elliptic curves >> >> I'll add my own data point: draft-irtf-cfrg-vdaf. This draft specifies an >> incremental distributed point function (IDPF), a type of function secret >> sharing used in some MPC protocols. Most of the computation is spent on XOF >> evaluation. For performance reasons, we try to use AES wherever we can in >> order to get hardware support. We end up with a mix of TurboSHAKE128 and >> AES, which is not ideal. It would be much nicer if we could afford to use a >> dedicated XOF, but TurboSHAKE128 is not fast enough in software. I threw >> together some benchmarks for B3: >> >> https://github.com/cjpatton/libprio-rs/compare/main...cjpatton:libprio-rs:exp/blake3-for-idpf?expand=1 >> >> The results were interesting. Compared to Turbo, B3 is 30% faster, as >> expected. Compared to the baseline (mix of Turbo and AES), B3 is 2-3x >> slower for the client operation, as expected; but the server was slightly >> faster, which frankly is a bit of a mystery. We'll need to dig into the >> code more to be certain, as there may be some obvious inefficiencies on the >> client side. But preliminarily, I would say B3 is probably too slow in >> software for this application. >> >> Chris P. >> >> >> >> >> _______________________________________________ >> CFRG mailing list -- cfrg@irtf.org >> To unsubscribe send an email to cfrg-leave@irtf.org >> > _______________________________________________ > CFRG mailing list -- cfrg@irtf.org > To unsubscribe send an email to cfrg-leave@irtf.org >
- [CFRG] Re: BLAKE3 I-D Jean-Philippe Aumasson
- [CFRG] Re: BLAKE3 I-D Christopher Patton
- [CFRG] Re: BLAKE3 I-D Christopher Patton
- [CFRG] Re: BLAKE3 I-D Jean-Philippe Aumasson
- [CFRG] Re: BLAKE3 I-D Christopher Patton
- [CFRG] Fwd: Re: BLAKE3 I-D Jack O'Connor
- [CFRG] Re: BLAKE3 I-D Jean-Philippe Aumasson
- [CFRG] Re: BLAKE3 I-D Jean-Philippe Aumasson
- [CFRG] Re: BLAKE3 I-D Jack O'Connor
- [CFRG] Re: BLAKE3 I-D Christopher Patton
- [CFRG] Re: BLAKE3 I-D Chris Barber
- [CFRG] Re: BLAKE3 I-D Jack O'Connor
- [CFRG] Re: BLAKE3 I-D Eric Rescorla
- [CFRG] Re: BLAKE3 I-D Jean-Philippe Aumasson
- [CFRG] Re: BLAKE3 I-D Benson Muite
- [CFRG] Re: BLAKE3 I-D Eric Rescorla
- [CFRG] Re: BLAKE3 I-D Benson Muite
- [CFRG] Re: BLAKE3 I-D Phillip Hallam-Baker
- [CFRG] Re: BLAKE3 I-D Jean-Philippe Aumasson
- [CFRG] Re: BLAKE3 I-D Benson Muite