Received: by 10.213.65.68 with SMTP id h4csp456185imn; Fri, 16 Mar 2018 08:18:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELvovIHQsBUKKtqCmGx6ABay/43zy+c2IzXhtIdARshTNFDUBeeDWb1eAgsr0E01lMWu/Vwb X-Received: by 10.99.110.137 with SMTP id j131mr1750045pgc.85.1521213499784; Fri, 16 Mar 2018 08:18:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521213499; cv=none; d=google.com; s=arc-20160816; b=So1SVOQpXAGjPc2wEiyqCXq0grtjw70DIfUqP2fF+QNELMBOLTzQ1NFgqa3EQNSOOp v4DReMQQJSw1373g/otUi0HJg5yB02PrZYIG9RRQmzXByFvQeXmWRNL8QdAhO/qRia2W yX8iPrGbYGGk/VWvgXjVxRLBUohUroh1NCUx22bgxWFOwpbcF/i50wHgBPV0/yNF0T2I V0VaFf9B0ZdjKq+PMBHdsiKrGaDitlM1KBICPScHPxtAzfmGcESO7LLC4UzZGkBoRrVZ FQ+hY3jXFOgo8O1V/KgerN/tC6rRY8El5tpoQUGoQEfeO10QpZHiyWnko4fyTMrbBu// nS6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=00Yqbyz/6Mc1FuDeB9R8ReVl4hE4KCzIYtKK4lW1QLk=; b=lkRA60H6ATDErcdsAuT9qYvpcvgSZtYb5mpYF5Uq4H4YcfZeJr05degkdgE0aJqZHx dt1YPFVP2IVNyleQuv8x1lVMFw2Z2mMJ3Vzr2YN1V4wZphUkJLdGBkAkmLXdks3Eou51 QjxDXYURyLaHuimbYH9gsVWQZf1Zux5ToeWdUaGo4SwPfo0nX4roWKe3Spgtx1QB735A fe2qLLyosYy8ekefBtycVRjKsclbAO5Em3EtfUeapuYZGVkfTPd9KJz0LtK0wYJb7aV9 2kLNN8fWQV/qw1iUIvL+A5770tRgKyem7K6TTkOEN/JXIMepSkgClcido+bhdPE+y5IE iuKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si5097846pge.263.2018.03.16.08.18.02; Fri, 16 Mar 2018 08:18:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380AbeCPPQ5 (ORCPT + 99 others); Fri, 16 Mar 2018 11:16:57 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:59294 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbeCPPQz (ORCPT ); Fri, 16 Mar 2018 11:16:55 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.84_2 #2 (Debian)) id 1ewr66-0001xa-C7; Fri, 16 Mar 2018 23:16:46 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1ewr62-0001j0-Rl; Fri, 16 Mar 2018 23:16:42 +0800 Date: Fri, 16 Mar 2018 23:16:42 +0800 From: Herbert Xu To: Horia =?utf-8?Q?Geant=C4=83?= Cc: "David S. Miller" , Jonathan Corbet , linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: doc - clarify hash callbacks state machine Message-ID: <20180316151642.GA6606@gondor.apana.org.au> References: <20180305103945.3517-1-horia.geanta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180305103945.3517-1-horia.geanta@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 05, 2018 at 12:39:45PM +0200, Horia Geantă wrote: > Even though it doesn't make too much sense, it is perfectly legal to: > - call .init() and then (as many times) .update() > - subseqently _not_ call any of .final(), .finup() or .export() Actually it makes perfect sense, because there can be an arbitrary number of requests for a given tfm. There is no requirement that you must finalise the first request before submitting new ones. IOW there can be an arbitrary number of outstanding requests even without the user intentionally abandoning any hash request. So please modify your commit description. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt