Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751540AbdF1JDz convert rfc822-to-8bit (ORCPT ); Wed, 28 Jun 2017 05:03:55 -0400 Received: from mail.sigma-star.at ([95.130.255.111]:45996 "EHLO mail.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751469AbdF1JDw (ORCPT ); Wed, 28 Jun 2017 05:03:52 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [RFC PATCH 1/2] crypto: caam - properly set IV after {en,de}crypt From: David Gstir In-Reply-To: Date: Wed, 28 Jun 2017 11:03:50 +0200 Cc: Dan Douglass , "herbert@gondor.apana.org.au" , "davem@davemloft.net" , "richard@sigma-star.at" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Transfer-Encoding: 8BIT Message-Id: <75D616EC-B298-4DF2-8991-7CD48E16EF44@sigma-star.at> References: <20170602122446.2427-1-david@sigma-star.at> <20170602122446.2427-2-david@sigma-star.at> To: =?utf-8?Q?Horia_Geant=C4=83?= X-Mailer: Apple Mail (2.3273) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 510 Lines: 18 Horia, > On 28 Jun 2017, at 10:32, Horia Geantă wrote: > >>> + sg_pcopy_to_buffer(req->dst, nents, req->info, ivsize, >>> + req->nbytes - ivsize); >> >> scatterwalk_map_and_copy() should be used instead. >> > David, IIUC this is the only change needed in this patch (applies both > for encryption and decryption, of course). > Will you formally resubmit? Thanks for the reminder. I did not get arround it yet. Will send the new patch within the next few hours. Thanks, David