From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C1A5C4332F for ; Mon, 12 Dec 2022 00:50:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230105AbiLLAuj (ORCPT ); Sun, 11 Dec 2022 19:50:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbiLLAui (ORCPT ); Sun, 11 Dec 2022 19:50:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AD04BCA9; Sun, 11 Dec 2022 16:50:38 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 98A4E60EB3; Mon, 12 Dec 2022 00:50:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77A75C433D2; Mon, 12 Dec 2022 00:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670806237; bh=3c2vbNCIeCOuoNK7LIpxSFxMSG+DIPY3s77NDUk4nLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ldcg7sCNLvJfHRE6fYcxM04ru2u1GgWL9eW0y/0Vi/Q+2kQJPDOnRz4w6IXoZB/nH xUHSFwax5Qg5EcjBlkQOu9nd+YpL9+lsA6RCEvAyq4iNDIkvNbk8Ys+MWiGWRpZkIn D8IuDf0NLKoHER0TY1DQwVdK8gSXvZw+NjjfeNgORYb2ckH1pMMo2AYojytwmJ3JYN u7Xww26nKwz7DbASmufUM+4bupT1p/eelwdNDEDp9pWWl3uCoMppmTuU+q+ve4pRnl oE1KRdpLSCLGcpEBGwa1PpfoUWK2WKnXinZ6dtq2UAeBq0D6HX2ayQrahpBJtsALcA MTxP6e3M91kXA== Date: Mon, 12 Dec 2022 00:50:32 +0000 From: Jarkko Sakkinen To: James Bottomley Cc: linux-integrity@vger.kernel.org, Ard Biesheuvel , keyrings@vger.kernel.org Subject: Re: [PATCH 03/11] tpm: add cursor based buffer functions for response parsing Message-ID: References: <20221209160611.30207-1-James.Bottomley@HansenPartnership.com> <20221209160611.30207-4-James.Bottomley@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221209160611.30207-4-James.Bottomley@HansenPartnership.com> Precedence: bulk List-ID: X-Mailing-List: keyrings@vger.kernel.org On Fri, Dec 09, 2022 at 11:06:03AM -0500, James Bottomley wrote: > It's very convenient when parsing responses to have a cursor you > simply move over the response extracting the data. Add such cursor > functions for the TPM unsigned integer types. > > Signed-off-by: James Bottomley Saying that something is convenient is not really an argument. What you are going to use it for? Is it complex enough that what we have not doesn't scale. I'd just answer these questions and write more reasonable commit message. BR, Jarkko