Re: [MLS] Idea for Issue #33
Nick Sullivan <nick@cloudflare.com> Thu, 24 January 2019 16:58 UTC
Return-Path: <nick@cloudflare.com>
X-Original-To: mls@ietfa.amsl.com
Delivered-To: mls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AABF21311DF for <mls@ietfa.amsl.com>; Thu, 24 Jan 2019 08:58:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.552
X-Spam-Level:
X-Spam-Status: No, score=-6.552 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-4.553, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cloudflare.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 MxW7KFdZC5AG for <mls@ietfa.amsl.com>; Thu, 24 Jan 2019 08:58:38 -0800 (PST)
Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (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 899F5130EB8 for <mls@ietf.org>; Thu, 24 Jan 2019 08:58:38 -0800 (PST)
Received: by mail-ot1-x332.google.com with SMTP id k98so5872248otk.3 for <mls@ietf.org>; Thu, 24 Jan 2019 08:58:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uRT1W473CHM4kTPV1jn9t/C2Spxb4qJK5CRNf0aXoZI=; b=mLnFQruzvjrSVS0mqMIweLQ8Nxsr59Z+xpglMB1/M88udc5jc0roDpNUGs0sgIAU66 2vBH70V0g8r2dNWMw4wGrcA+lw9aLTSkBQvm2mlJqOtpB8jOlz5xFi/HXKMSKZsJe+0X kzIrTjh5WNFmDEoct/y1MXPmCUV19ayKY+/70=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uRT1W473CHM4kTPV1jn9t/C2Spxb4qJK5CRNf0aXoZI=; b=AfALhP93SibRf1MTI/LRjEGsnSGSFoRZV1h0GlP4EFivrZQJZhRPfWsw1cUvPZeRsh HYDxK0DjCktThE7ShmbmgZE+I9A22TeW2XXk7HPnN2gKmDInvuomCeTRpOiu4wRa5mCn OJJXAGdAUrkBJfnI7Cp4byU4WpH4lbtVOIEb7lfASbcKURXC9V7rqfvSKe7a16Uv3lH9 Yju4/b1I67IkHsMo00YNLVHjUXx5kEFJPFSvhcPWBFMKDdLe5BZfqd+DllgmgP+e0yNm 30b+dUoNjv+pA/A8Z07M7wbLF2D0cNupCF7cwbwJgeqE9qlfedqzSsxkCL8pcMOTfBPq cMmA==
X-Gm-Message-State: AJcUukdv8g1j583d4aDE2SkjvBXHsOV/LWcYyZnYmnXFi18STCuUAvDT XVpndxYlHKjguxSXedqw/dVk0PzUjouCBcJssRRy1g==
X-Google-Smtp-Source: ALg8bN7+Mvzz1NA4T95v9o7ZeUIhjjKdjjfQu05JJEtzsgzq4I3Gv5II91bZVprYXTszv1qVmOItBvQs0O2ARAbDazw=
X-Received: by 2002:a9d:3f7:: with SMTP id f110mr5207313otf.171.1548349117620; Thu, 24 Jan 2019 08:58:37 -0800 (PST)
MIME-Version: 1.0
References: <CAFDDyk8Onmkmn=BeK27X5cXVsN1ardw745vX2QqxYhwYnAC-RA@mail.gmail.com> <CAL02cgQ3CTFpCW22DtGmvZY9=kdvT3hhohyNQ8QPsyCxr7AwyQ@mail.gmail.com>
In-Reply-To: <CAL02cgQ3CTFpCW22DtGmvZY9=kdvT3hhohyNQ8QPsyCxr7AwyQ@mail.gmail.com>
From: Nick Sullivan <nick@cloudflare.com>
Date: Thu, 24 Jan 2019 08:58:25 -0800
Message-ID: <CAFDDyk8O==vF0_2nmUoVRGCFes0xZDAT=U52o4RDOidCgEe0yA@mail.gmail.com>
To: Richard Barnes <rlb@ipv.sx>
Cc: "mls@ietf.org" <mls@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000002516980580371f3c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/mls/FNamR6o3KHGIJH6zVK6l3FGo004>
Subject: Re: [MLS] Idea for Issue #33
X-BeenThere: mls@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Messaging Layer Security <mls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mls>, <mailto:mls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mls/>
List-Post: <mailto:mls@ietf.org>
List-Help: <mailto:mls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mls>, <mailto:mls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Jan 2019 16:58:41 -0000
Hi Richard, You’re right, the KDF part is not necessary, the verifier can just compare the public key. Scratch that part. However, revealing r is not an option for the participant who was given the wrong key share, only the participant who created the bad key share. They may be offline or claim to have deleted it for forward secrecy reasons. This is why you need the zero-knowledge machinery. Nick On Thu, Jan 24, 2019 at 6:22 AM Richard Barnes <rlb@ipv.sx> wrote: > Hey Nick, > > If I'm understanding this correctly, I'm not sure it adds much new. > > W.r.t (1), the public keys in the path already provide this function, > since they're a public value derived from the node's secret. Similarly, > w.r.t. (2), the public key rP commits to the secret value r. > > So if the desire is to allow a third party to verify that an update is > bad, and we're OK revealing one of the (previously) encrypted node secrets, > we may have the machinery we need. The reporter can reveal the ECIES > secret value r, and the verifier can first check that r matches the > ECIESCiphertext, then decrypt the ciphertext and check the rest of the path. > > It seems like the only way you could do better than this is if you could > do reporting without revealing any node secrets (even the inconsistent > ones). But that seems appreciably more difficult. > > --Richard > > > On Wed, Jan 23, 2019 at 8:34 PM Nick Sullivan <nick= > 40cloudflare.com@dmarc.ietf.org> wrote: > >> Hello all, >> >> Relaying some ideas that I posted in the Github issue that allow a >> participant that was maliciously removed from the group by a bad update >> message to publicly prove that it was given an inconsistent update. This is >> an idea based on lightweight zero-knowledge proofs. >> >> https://github.com/mlswg/mls-protocol/issues/21 >> <https://github...com/mlswg/mls-protocol/issues/21> >> >> Recall the following from ECIES: >> Say that you are encrypting a ciphertext *X* to a user with private key >> *a*, public key *A* (= aP) and elliptic curve base point *P*. The ECIES >> ciphertext is the pair *(rP, c)* where *r* is a randomly-chosen scalar >> and *c* is the encryption of X with a key derived from *k* >> =KDF(rA)=KDF(raP). >> >> The key to this mechanism is revealing enough to prove to a third party >> that an update received by the user is decrypted to an inconsistent X than >> an update received by another participant, but without revealing the >> private key *a *(which would compromise the confidentiality of previous >> messages). >> >> Proposed modifications of the protocol: >> 1) Add a mechanism that allows a party with access to a supposed secret >> value of a node to validate the consistency of the chain of hashed derived >> from that secret. This could be implemented by creating a public value that >> consists of a KDF of the secret value with a known public value for every >> node that is being updated. To check a secret value, the validating party >> needs to compute the KDF for every node up the tree to the root and compare >> with the published values. >> >> The KDF acts as sort of a public integrity hash of to the node's secret >> value. >> >> 2) Add a Schnorr NIZK of knowledge (RFC 8235) of the random value r with >> every ECIES ciphertext. This proves that the r used in the ECIES encryption >> is known to the updater and rP is not trivially derived from some other >> previously sent r'P. >> >> For one participant to prove that they were given an update message that >> did not include the correct node secret, that participant can reveal the >> following: >> arP, DLEQ(arP:rP :: P:aP) >> >> Where a is the node's private key, and DLEQ is a discrete log equivalence >> proof that shows that arP is rP multiplied by the private key *a* of the >> user. >> >> >> So in summary, we would add: >> - Proof of knowledge of the randomness used in ECIES >> - Public KDF of each node's secret value >> and then a member could prove to an auditor that it was given the wrong >> secret by revealing: >> - an intermediate calculation of the ECIES decryption, a DLEQ proof that >> the right key was used >> >> >> I'm eager for this proposal to have some holes shot in it. >> >> >> Nick >> >> >> _______________________________________________ >> MLS mailing list >> MLS@ietf.org >> https://www.ietf.org/mailman/listinfo/mls >> >
- [MLS] Idea for Issue #33 Nick Sullivan
- Re: [MLS] Idea for Issue #33 Yevgeniy Dodis
- Re: [MLS] Idea for Issue #33 Nick Sullivan
- Re: [MLS] Idea for Issue #33 Richard Barnes
- Re: [MLS] Idea for Issue #33 Nick Sullivan