Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp270795imm; Tue, 12 Jun 2018 23:31:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJV9kbq0HgtfIm97I6/vursNgtXm8okRmjg96d4tWChqg85TpD1j09na0sfD6i4/j6lPtQY X-Received: by 2002:a65:5b4c:: with SMTP id y12-v6mr3039012pgr.442.1528871480134; Tue, 12 Jun 2018 23:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528871480; cv=none; d=google.com; s=arc-20160816; b=bATSAZl5vjQtIvFq0Qu0tMwjMMehHystgtIVCuE73YP7jwbO+u3AXrvzgTWc8mn6zH SRzIXA0NaHOonkiKLTs9+hy2wqI2X3FXV+cyq99S6LD0PkOP3fsPMrLDaMhh6Lavu9cu /niHKJgpkoJw1O2B770u7tGuQbx537+nZog0SQt0aHXDT6qUEk79Y5TeP2vYd83v3mHz w5zNiOawiQuEqEdn9p1yPTQioc12LkdxX2zrpPNBNlgkUxlMxe0/PHwJXwvoFGBhXSiv UUVCszLaPGfpfxiKkqX6otGsvvSANB/l2VD+CN/N+Nuhn0qrEyCLrxb2vHTvK/Yx0VM/ n3hg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=gBIKaptxhl8yscXQB0Ck1BIVd8NiGo1kIBwy9V1mDZM=; b=irriYBB7qwGIJOGKizMNLokRJrY9XVw2sv+5v+Y1vujXxnlGIskjV0bW64ysHcSLAF 53LPB4KeBvZyfkEZIlm0yMr47DMOR8xCsjPe1FwUjKtaBmnVwPkvbJ8WlnydSVR8Eb20 LyhiF/FOd7/Z8OoNvKRs8t+l8gSK9swIQH8iWkCzyjeXFCnQz1OOdcbnMdywr33MCs6+ gVpnd/KLEwLktOcDEpoXl57mJlfJn0SjwY3rgTAZCTM2oB38oHvLai+KJv9L+fIXsCvm ibPEprilyQvakDYs1rxLJRg9RafEvl22/mSmex+Jjz37+eqSt9mWYAEcnZXWJuK6861N PrYA== 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 f34-v6si2056119ple.165.2018.06.12.23.31.05; Tue, 12 Jun 2018 23:31:20 -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 S1754493AbeFMGak (ORCPT + 99 others); Wed, 13 Jun 2018 02:30:40 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:53574 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754466AbeFMGai (ORCPT ); Wed, 13 Jun 2018 02:30:38 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1fSzIg-0001V3-Ve; Wed, 13 Jun 2018 14:30:35 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fSzId-0007Ll-2G; Wed, 13 Jun 2018 14:30:31 +0800 Date: Wed, 13 Jun 2018 14:30:31 +0800 From: Herbert Xu To: Gilad Ben-Yossef Cc: "David S. Miller" , hadar.gat@arm.com, Ofir Drang , stable@vger.kernel.org, Linux Crypto Mailing List , Linux kernel mailing list Subject: Re: [PATCH] crypto: ccree: fix iv copying for small buffers Message-ID: <20180613063030.bsrq3xmufcw4zi52@gondor.apana.org.au> References: <1528361927-4172-1-git-send-email-gilad@benyossef.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 07, 2018 at 12:02:04PM +0300, Gilad Ben-Yossef wrote: > > I'd be really happy to get a review on this patch - not so much what > it is doing but > rather the rational behind it - how is a tfm provider supposed to > handle copying the > last block of ciphertext into the request structure if the ciphertext > size is less than a > block? Which algorithm is this? In general we disallow requests which are not a multiple of a block for block ciphers. Obviously this doesn't apply to stream ciphers such as ctr(aes), but in that case it doesn't really matter as you cannot chain such a request. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt