Re: [Sframe] Key ratchting

Emad Omara <emad.omara@gmail.com> Thu, 06 October 2022 16:10 UTC

Return-Path: <emad.omara@gmail.com>
X-Original-To: sframe@ietfa.amsl.com
Delivered-To: sframe@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 88FCDC15259B for <sframe@ietfa.amsl.com>; Thu, 6 Oct 2022 09:10:04 -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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 (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 DLYEAwf0qDNm for <sframe@ietfa.amsl.com>; Thu, 6 Oct 2022 09:10:02 -0700 (PDT)
Received: from mail-vk1-xa34.google.com (mail-vk1-xa34.google.com [IPv6:2607:f8b0:4864:20::a34]) (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 2BEBFC1526E1 for <sframe@ietf.org>; Thu, 6 Oct 2022 09:10:02 -0700 (PDT)
Received: by mail-vk1-xa34.google.com with SMTP id y129so1034124vkg.8 for <sframe@ietf.org>; Thu, 06 Oct 2022 09:10:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C8zBfuyntNI8VtM8Sb5nYtfbQA8EGM2ck+fupNSy+f0=; b=XKBFGCujDZpBrlxgDy7tEgASFCkFGLIJ0CbuJGj7VK1Rd8bC3ix0atuXTMcNSeADbW xvhvdazozDmqJOdhKozNguLEDRr6j6Z99AVokJj0BSkl+7eXE/+F/HIr6CV2bgMXuRKK BqqN9WXZQq8881wc3TEk5Or3lHORtKwPM3N+RGb+ir44kjsn4Hwach39PFOU+NkZsZBC X9z0e17awrUR5FKD9jF5J4FJAb8th2cyLiXptVnMa3MhfxAReQ9QNtlosvp9f+eG8sWA Bbo1TyW9qp54GMn+wi69R0SbTFzDed2ChNxq9rG6YZ0Cooap1opC7/Tddk8KHN0puErn WKuw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=C8zBfuyntNI8VtM8Sb5nYtfbQA8EGM2ck+fupNSy+f0=; b=GlONWrv0w1e50sAvgX7STstpAqr1W9LT7mpMbcx+IQLe+RCmrGWotPf5DrAt/m2k8m SnFFJ6eJT3Y+pnvj9NHxE7IfF9FM5XVzP9GDaXIWLBCCKZ/OeB1iJ7EcIe69Q+D39y7k BjSqCoBdTHuYvvAjXH/YCaHvEq5mgLJtyQHWA8JKU4UpZ+qXcgJYdqUe04gTLsdS+Wkm tF3F/JDy+98MRBnY2DbkATDpIrqyoFAaC5tjHP+ei8HDziCsoPgKkHLoI5aLwnEpzIqQ K++b/TQQYo8nd9hrXw20PMzNxAhYKEkNC0jjIQHgDXRZfyyWQoAF7uf7TQNQn0VDl+9Q E/zA==
X-Gm-Message-State: ACrzQf18v6LZZm7FKnpVlD6IYvQAFbDPtP82zlplHChdK8FEFFKPbc4A PKiGEVO2Jzo4KjU5KHANAe5ujNP0gFA8TRcS2VA=
X-Google-Smtp-Source: AMsMyM7UqOFAB0wkybRaKqleR+fqplk+VXYxpJztcQ/rGi8k8SrFyZn9GQakYPiru12wR79JplOUrgTQoE3Bqh+kwYk=
X-Received: by 2002:a1f:2548:0:b0:3a3:e340:ac2c with SMTP id l69-20020a1f2548000000b003a3e340ac2cmr399478vkl.34.1665072600643; Thu, 06 Oct 2022 09:10:00 -0700 (PDT)
MIME-Version: 1.0
References: <CA+ag07aZ-OoCpAQumj_TYDuiZ=RaBMiWiAi8MoUrYo4zmYuovg@mail.gmail.com> <CAL02cgTfh8=j=t_MZNTw+Mpmyym8UXr=rkjMNUKK_P2iH_F4DA@mail.gmail.com> <CA+ag07ZVX3r8bY-BmSvch=vkyXyWyerZ4Q8gBdSvAZEcinzgYQ@mail.gmail.com>
In-Reply-To: <CA+ag07ZVX3r8bY-BmSvch=vkyXyWyerZ4Q8gBdSvAZEcinzgYQ@mail.gmail.com>
From: Emad Omara <emad.omara@gmail.com>
Date: Thu, 06 Oct 2022 09:09:49 -0700
Message-ID: <CADkVUQvOpNT_i+MJA=GSB4NiNMYRh62gOTmzLp=XsnWjmK039Q@mail.gmail.com>
To: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Cc: Richard Barnes <rlb@ipv.sx>, Emad Omara <eomara@apple.com>, sframe@ietf.org
Content-Type: multipart/alternative; boundary="000000000000e2fd5405ea5feca2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/sframe/WimNcxjFOp1bSKEIdHAfMd6GEYQ>
Subject: Re: [Sframe] Key ratchting
X-BeenThere: sframe@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Secure Media Frames <sframe.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sframe>, <mailto:sframe-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sframe/>
List-Post: <mailto:sframe@ietf.org>
List-Help: <mailto:sframe-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sframe>, <mailto:sframe-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 06 Oct 2022 16:10:04 -0000

On Thu, Oct 6, 2022 at 6:55 AM Sergio Garcia Murillo <
sergio.garcia.murillo@gmail.com> wrote:

>
>
> On Thu, Oct 6, 2022 at 2:40 PM Richard Barnes <rlb@ipv.sx> wrote:
>
>>
>> 1. Instead of allowing every sender to use the whole KID space, you could
>> segment the KID space as in the MLS-based case (so that KID would indicate
>> sender as well as generation)
>>
>
> That was my second question, would the SFrame stack need to know the
> sender for each KID to be able to "expire" a previous KID for the same
> sender? If so, should that information be passed in the SFrame API or
> should we carry the sender Id also on the SFrame header? (The later would
> allow to identify the sender of each packet)
>
> 2. Instead of ratcheting the keys directly, there should probably be a
>> ratchet_secret that gets ratcheted, and from which keys are derived.  This
>> would avoid the keys being used with two algorithms (HMAC and AEAD).
>>
>
> I think @Emad Omara <eomara@apple.com> should be the right person to
> answer that question.
>
I think that makes sense to ratchet a root secret and from it derive new
encryption and authentication keys

>
> Best regards
> Sergio
> --
> Sframe mailing list
> Sframe@ietf.org
> https://www.ietf.org/mailman/listinfo/sframe
>