[CFRG] Re: I-D Action: draft-irtf-cfrg-rsa-guidance-01.txt
Alicja Kario <hkario@redhat.com> Thu, 05 September 2024 18:04 UTC
Return-Path: <hkario@redhat.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 A8855C19ECB9 for <cfrg@ietfa.amsl.com>; Thu, 5 Sep 2024 11:04:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.253
X-Spam-Level:
X-Spam-Status: No, score=-2.253 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.148, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 yC3sVYMbKsaQ for <cfrg@ietfa.amsl.com>; Thu, 5 Sep 2024 11:04:15 -0700 (PDT)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 194CCC14F705 for <cfrg@ietf.org>; Thu, 5 Sep 2024 11:04:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725559454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fxqUXujbAhQBMR1wDm0wwGOJIrfjtoLgbRSp5nVfBtk=; b=hjF5FUv3nmIy3CNHp0Yiuj5VxJl0FqvWWvlSlaJ4OF9Ro3HwxfRBl/xTZ91E5TUdLsxSuM FjzsMRcglKkD1nDejt3qiU2oedwu1Wl4e82ZkUbqZnSVJxZsiCkS6Q4Cv6RDj0XMlc9dkV wUtaRywuVvSZlgqgZ1J7Hcdq/COaznY=
Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-597-JsnTcRPNPOS0y6liEumeEg-1; Thu, 05 Sep 2024 14:04:11 -0400
X-MC-Unique: JsnTcRPNPOS0y6liEumeEg-1
Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-374cd315c68so736307f8f.0 for <cfrg@ietf.org>; Thu, 05 Sep 2024 11:04:11 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725559451; x=1726164251; h=content-transfer-encoding:user-agent:organization:references :in-reply-to:message-id:mime-version:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u7barjlUU/N1ywng1G+iPEsADw2M3bntOTiLmIGPp7U=; b=vC00TUrbZoB44SMwheC2KnVNpJKnllWuETLg1d/t8//4/qvF5HzZdSkRqfLwClrrV/ JBkoosygpt/60FGwkQGo6vNd/PaYNc3Y0Xr7Hb26YNanXEGKeSNyKZ0XLLrTMUK+faai HdDyj9UY6Gu1Fqolh4d4cVNbdKcN9+YKauzcbC82pXs4aGxfDSr152CJ+CWC/q5YevWJ nTjpvU7wovT5HiKU2hkdsdqDDT6SSb1ieDz5VVTfR6xKkaIUQkAyKK91/LL5AgEnOjpm Z5fOlyr198bGOva6xHpgB+lPdLkwZW3IORchJnUjxrZgyQqr0Qi00yRfwVZUx8G+qKF3 C5YA==
X-Gm-Message-State: AOJu0YxA18At9qSLGtQXs6JTD/XEGHbpW/m4M83e9m2uloy/HrDWBVYw 4KIWbMGgpXHNo6jNDdXeRXGBi1Aom/mGgOCQXTH+kkggKEcIG52h0I8+qLkbYte4aMZItFKlisk 02VpZ2VIoZFRzNbp1fegEARk9pEwPCcjPtHR/slQ+1w==
X-Received: by 2002:adf:e6ce:0:b0:377:2df4:55f6 with SMTP id ffacd0b85a97d-3772df4571fmr4215375f8f.17.1725559450647; Thu, 05 Sep 2024 11:04:10 -0700 (PDT)
X-Google-Smtp-Source: AGHT+IFSIVtxY+E/DN+J4uubli1st+FC4ElUCtxIA0GM4vng8CgNFPN4lYjLvxH8mCVACzUYDahzbg==
X-Received: by 2002:adf:e6ce:0:b0:377:2df4:55f6 with SMTP id ffacd0b85a97d-3772df4571fmr4215351f8f.17.1725559450138; Thu, 05 Sep 2024 11:04:10 -0700 (PDT)
Received: from localhost (nat-pool-brq-u.redhat.com. [213.175.37.12]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e274ccsm243992585e9.37.2024.09.05.11.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 11:04:10 -0700 (PDT)
From: Alicja Kario <hkario@redhat.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Thu, 05 Sep 2024 20:04:08 +0200
MIME-Version: 1.0
Message-ID: <c67fa507-5373-4693-9db2-6618c1070ad8@redhat.com>
In-Reply-To: <dad51c80-4eb6-423a-af8f-9a99c86377be@redhat.com>
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>
Organization: Red Hat
User-Agent: Trojita/0.7-git; Qt/5.15.13; xcb; Linux; Fedora release 39 (Thirty Nine)
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: M6UDRQM52STELSRHUKRWERMWS3JDR7PT
X-Message-ID-Hash: M6UDRQM52STELSRHUKRWERMWS3JDR7PT
X-MailFrom: hkario@redhat.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/U2ppvcWggYiqzZ3btGQVOM3PA0k>
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>
(sending again with the CCs cleaned up) On Thursday, 5 September 2024 20:02:56 CEST, Alicja Kario wrote: > On Thursday, 5 September 2024 19:21:39 CEST, Phillip Hallam-Baker wrote: >> Very interesting. RSA will be with us for a long time... >> >> Have you considered key generation? Just adding a reference to >> FIPS 185-5 might be enough. I am currently trying to decide >> whether probabilistic or provable primes are the way to go. I >> have also noticed that keygen on my state of the art 2023 >> machine is taking almost as long as it used to take in 1990. >> That is because we are using longer keys and we are doing a lot >> more checks - the auxiliary primes. > > RSA key generation is a very rare occurance, so it's easier to just > do it offline, on a trusted system, than to work to make it side > channel safe. So, no, I consider it out of scope. > >> On the draft itself, I am not sure about calling Montgomery >> ladders 'side channel free'. They are really not. Hardware does >> too much weirdness these days for anything to be side effect >> free unless it is hardware designed to be so. > > I'm suggesting Montgomery ladder not because it's inherently side-channel > free—it's not, as the draft explicitly states—but because it's one of > the easiest ones to make side-channel free. > > While special hardware may help, I haven't seen that it's actually > necessary on general purpose systems: my team and I have verified multiple > implementations of RSA decryption to be side-channel free to > sub nanosecond resolution. Same for particular big-int arithmetic > primitives. For CPU scheduler, having operations that take the same amount > of time makes handling the CPU state much easier, so I don't think > it's so far fatched of a result. > > Honestly, I suspect that a lot of the "weirdness" you refer to comes > from badly designed test scenarios, not actual lack of determinism > in the hardware. > > And while yes, we can have a situation where multiplying zeros over and over > will take less energy than multiplying random values over and over, and > that can bleed into the CPU frequency, and thus be visible in the > timing side channel, it's not something I have observed for the typical > RSA key sizes, let alone something that's a valid attack vector for RSA. > >> On Tue, Sep 3, 2024 at 2:27 PM Alicja Kario <hkario@redhat.com> wrote: >> Hello, >> >> In the main body of the draft there were just few minor changes: >> few typos fixed. >> >> The main change in revision 01 is the addition of actual test vectors ... > -- Regards, Alicja (nee Hubert) Kario Principal Quality Engineer, RHEL Crypto team Web: www.cz.redhat.com Red Hat Czech s.r.o., Purkyňova 115, 612 00, Brno, Czech Republic
- [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