Re: [kitten] Question about AES mode in Kerberos

Luke Howard Bentata <lukeh@padl.com> Wed, 11 January 2023 22:58 UTC

Return-Path: <lukeh@padl.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 000A0C15C526 for <kitten@ietfa.amsl.com>; Wed, 11 Jan 2023 14:58:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, 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=padl.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 mvhO899iy6Qd for <kitten@ietfa.amsl.com>; Wed, 11 Jan 2023 14:58:20 -0800 (PST)
Received: from us.padl.com (us.padl.com [216.154.215.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 202FCC18F7E9 for <kitten@ietf.org>; Wed, 11 Jan 2023 14:58:19 -0800 (PST)
Received: from auth (localhost [127.0.0.1]) by us.padl.com (8.14.7/8.14.7) with ESMTP id 30BMwEI3013744 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 11 Jan 2023 22:58:17 GMT
DKIM-Filter: OpenDKIM Filter v2.11.0 us.padl.com 30BMwEI3013744
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=padl.com; s=default; t=1673477898; bh=Opl8shBCWfF6tXhMJ837gZVuctRHR0zoXI5N2gQtSFc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=qC2nZMZj+aKiWqkdd8QOTIdRmUy/alWsgJ57dXnFB5N9CG5YqSdr0USw+dKy/A6Vl VXdsgwEFATjivvvu3EtiZKfinTWLiyXDACtBhOxw9BcFDjhppO+FTtjzknUDP00lO2 Gu+HW7w0Gx/v67RPYEEdngXgmQl55PApoxYSMlT6CHV+KcW1dyEuqkgpJQOB7kBmfk FRm1zHVmv5zCF+0BHe7V4LS3aP4zv59FluaUcJIRza61N79s1Gd9Wo/myJIk76L6PC figkbr4jhrwhLkPgiyYQvu20kly0PyrDGF1a0Ts5iLnHacX1K1YE2RSbZCIRqOlX8v f+L/DBWgnzweA==
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\))
From: Luke Howard Bentata <lukeh@padl.com>
In-Reply-To: <CAN-5tyG8dya=SuALSA_q=SPy=xVhT_azqp=O+goEKhB+9MHTaQ@mail.gmail.com>
Date: Thu, 12 Jan 2023 09:58:03 +1100
Cc: Greg Hudson <ghudson@mit.edu>, "kitten@ietf.org" <kitten@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <22A2A04F-5CFE-4548-B45A-9EE1F5DCD0A7@padl.com>
References: <CAN-5tyGGJXoo9RfKEGTsk8XeQDpZ--VSnO7nunzvnBBzrRB0WQ@mail.gmail.com> <558f31de-7fac-26c7-fe81-8e486968f0ef@secure-endpoints.com> <7B46A5A4-4415-4627-B964-44F2516D84FE@padl.com> <9464B1FF-6784-4D59-A4F6-1B5D58C2B94F@padl.com> <CAN-5tyE4eau116TkDLbvn+pTOjK_C+WEvi9SnUELr+4riTpZcw@mail.gmail.com> <cb3ff38f-7e62-0711-9a6c-50a96b571e2d@mit.edu> <CAN-5tyFA41VMz_3tBmh+FeefBBJOxfi1AoUCqUkRHR3z43qrKg@mail.gmail.com> <9bf334b8-cdde-b5a2-608f-6dbb4a353aa2@mit.edu> <F48BCF6B-FA9E-4287-A06A-626EBA20A653@padl.com> <CAN-5tyG8dya=SuALSA_q=SPy=xVhT_azqp=O+goEKhB+9MHTaQ@mail.gmail.com>
To: Olga Kornievskaia <aglo@umich.edu>
X-Mailer: Apple Mail (2.3731.200.110.1.12)
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/OyGm1dVo9rwSL_dGl6Gmr7YRnLE>
Subject: Re: [kitten] Question about AES mode in Kerberos
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Jan 2023 22:58:24 -0000

Hi Olga,

It’s hard to know how this would translate to real-world NFSv4 workloads. I don’t have enough experience with NFS to know, and testing it empirically would involve a chunk of kernel work (even if done on FreeBSD).

Cheers,
Luke

> On 12 Jan 2023, at 3:06 am, Olga Kornievskaia <aglo@umich.edu> wrote:
> 
> Thank you Luke. And I wish you didn't say that you saw 3x performance
> gains....
> 
> On Wed, Jan 11, 2023 at 4:22 AM Luke Howard
> <lukeh=40padl.com@dmarc.ietf.org> wrote:
>> 
>> Thanks Greg, an excellently written mail which I agree with 100%.
>> 
>> I did do some informal performance testing on Heimdal using its test_context tool,* aes256-gcm-128 was over 3x as fast aes256-cts-hmac-sha1-96. Having not done any profiling it’s difficult to say if they’re not other implementation-specific reasons for this being the case.
>> 
>> * modified to run the tests 1024 times with a 64k plaintext size and 2k associated data size
>> _______________________________________________
>> Kitten mailing list
>> Kitten@ietf.org
>> https://www.ietf.org/mailman/listinfo/kitten