[CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidance-01.txt
"Riad S. Wahby" <rsw@jfet.org> Fri, 06 September 2024 14:14 UTC
Return-Path: <rswatjfet.org@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 74920C151091 for <cfrg@ietfa.amsl.com>; Fri, 6 Sep 2024 07:14:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.658
X-Spam-Level:
X-Spam-Status: No, score=-1.658 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-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] autolearn=no autolearn_force=no
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 t7BNe0Kynz0X for <cfrg@ietfa.amsl.com>; Fri, 6 Sep 2024 07:14:32 -0700 (PDT)
Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (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 014F3C15107C for <cfrg@ietf.org>; Fri, 6 Sep 2024 07:14:31 -0700 (PDT)
Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-7a99fd5beb6so22005885a.0 for <cfrg@ietf.org>; Fri, 06 Sep 2024 07:14:31 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725632071; x=1726236871; 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=vOENigWCT9J3X1U1KQKWs5o281XJZ7TtU+uzeMaURo8=; b=sxGrz6/FR9kT8XTeiXs6rw3XJBLUSKTgcgTEJD58SZUYyNrIbLrjgK8BVrGM2LRFQs gCqi0nuuKedYrW7DOqyhUuRyatXMBoFyae/Gxwd3Dg7jfLhnIpiZT2EYGKQm4qaKb2eL XCEH8AJ/gd4as0p0SVd4Po8jlVUNMEzF4MIboYQUapA3AuJwhlN/qUkOaQruLZxj0q1y 8Sl4fIMGXJZc2CuIE542CFrtRrf5OS/G+LVvfb0ZFRYSI42h2gMQkurwJmZAXbEu+UDg b/+k3BZ1jrdY/+9s2z619SLOXmIXEBTJYP4NvfZ7AQlbVw6i9ClZwR7Gficf5THI3J2V QBrA==
X-Forwarded-Encrypted: i=1; AJvYcCWZIAegGYFJDKlfq4Rrh9etATxVJFesN5Mq81LjkASBP5B5YAFLShO9ioX44v9wVx+yt6x+@ietf.org
X-Gm-Message-State: AOJu0YyD6vc00zOuxlhpfomIWsN7aafIzMfbBOppdpLB0UpTXoS2bFw8 NMQGEmAGh9dcToJF4fePMBahOxysP6Q6wFmvfCAk3xSP8pR9y1dt
X-Google-Smtp-Source: AGHT+IGOEisDFVQbPaF38c2px/RaXCIIYAXKJVsWWvP5wNX4+zPuZR6Bo66aEgSIW+ZAneBH17S5iQ==
X-Received: by 2002:a05:620a:2552:b0:7a1:e341:d543 with SMTP id af79cd13be357-7a98893328emr1670953085a.28.1725632070733; Fri, 06 Sep 2024 07:14:30 -0700 (PDT)
Received: from localhost (pool-74-109-196-203.pitbpa.fios.verizon.net. [74.109.196.203]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a98ef251c4sm173384085a.22.2024.09.06.07.14.27 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Sep 2024 07:14:29 -0700 (PDT)
Date: Fri, 06 Sep 2024 10:14:27 -0400
From: "Riad S. Wahby" <rsw@jfet.org>
To: Alicja Kario <hkario@redhat.com>
Message-ID: <6nseitllindpwcbgbdbkho7jjjkahzcn4s3mpfonkgyhqglzar@u6vsrplr5hbs>
References: <172538719711.1420249.4393971363081609427@dt-datatracker-68b7b78cf9-q8rsp> <02e9a51e-b938-49f2-b832-de4d3ec575ee@redhat.com> <CAMm+Lwh3DwF1GA=WUMEsXZ-Ho__AKB6R-kfkxF9=pRZxn3jZBw@mail.gmail.com> <dad51c80-4eb6-423a-af8f-9a99c86377be@redhat.com> <g7dd62nttkb7u3qyki6b5hpjyk5opz36ehpbgvx4i3hr6batan@3vpb3ubbwt6p> <96769b45-db3a-4ab5-9a5f-dfcf635e4db6@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <96769b45-db3a-4ab5-9a5f-dfcf635e4db6@redhat.com>
Message-ID-Hash: O3FPRFMI575MBNP5PAOIFMHXZGLPJEAZ
X-Message-ID-Hash: O3FPRFMI575MBNP5PAOIFMHXZGLPJEAZ
X-MailFrom: rswatjfet.org@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@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidance-01.txt
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/3UblVDqMx2PjDG3--oUIhaonRbY>
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>
Hello Alicja, Thanks for your message. I completely understand your position, so I guess at this point I'm just advocating for the devil. But here goes, in reverse order: Alicja Kario <hkario@redhat.com> wrote: > Also, RFC 8017 says nothing about how to generate the RSA parameters. > > So, I consider key generation out of scope. > See https://github.com/tomato42/marvin-ietf/pull/new/outside-scope > for the proposed text. This text is strictly true but also pretty unhelpful to the reader. Reader thinks: "But I need to generate keys... so what do I do now?" It seems like at the very least it makes sense to recommend generating keys on a system that is safely hidden from prying eyes. And perhaps in this context that's enough---even if it still seems like a missed opportunity to help the reader by at least waving in the directin of countermeasures! > The protections I talk in the Draft are for remote timing attacks, > potentially conducted even over the Internet. > > How do you perform a remote network based attack against RSA key generation? This question is hard to answer in part because answering "how" requires knowing details of the system being attacked. I don't have those details. But if you're asking, does there exist a system in which RSA key generation can be attacked remotely via timing, my guess is very much yes: at this point it seems prudent just to assume that remote timing attacks are always practical in the absence of countermeasures. That's an over-approximation, but recent history suggests it's not all that far off. Or, putting on my Captain Obvious hat: "we've taken steps to prevent X" is always preferred to "we can't imagine how an attacker will do X". I'll end my devil's advocacy here. And: thank you for doing the hard work of writing down these valuable recommendations---please don't mistake my free-floating anxiety for a failure to appreciate your efforts! Best regards, -=rsw
- [CFRG] I-D Action: draft-irtf-cfrg-rsa-guidance-0… internet-drafts
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Alicja Kario
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Phillip Hallam-Baker
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Alicja Kario
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Alicja Kario
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Phillip Hallam-Baker
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Riad S. Wahby
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Alicja Kario
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Phillip Hallam-Baker
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Mike Simpson
- [CFRG] Rigid generation of RSA from a seed. Phillip Hallam-Baker
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Alicja Kario
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Riad S. Wahby
- [CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidan… Alicja Kario
- [CFRG] Re: Rigid generation of RSA from a seed. Orie Steele
- [CFRG] Re: Rigid generation of RSA from a seed. Phillip Hallam-Baker