Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1081416ybg; Wed, 29 Jul 2020 05:27:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4bledfR2g7dzzTWwVp4onPfRRf0wHu8yesIXsS7rrICS0VntgeiYhnO2C281nFLTg2I9o X-Received: by 2002:aa7:c3d7:: with SMTP id l23mr30350765edr.18.1596025667564; Wed, 29 Jul 2020 05:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596025667; cv=none; d=google.com; s=arc-20160816; b=vn2hhYIuBxUOgyfdGSxioeZv/74baeNF+nvHcK5AShW5JhGAk6xGEWnkEPpgSY/4Z4 vIEXodCXNuKYYMZRz8uOagc1wc/xxM6W2maUZJ9Z4N+e7tvwdvy2Kb3LJtOM91JLXC67 2zUerpf5513ahHzTC3RzgasNPShQeqo2cySW0BRls9aOK61Vh77I1hveWudtJlkukgwJ MGcEm9nqt67Bo5IUCI8ibxaBvnlE6ueA5NBDWcB6a2tv+PBOrWVzx+4CIp9W+AtBf5N7 KuL0GT1cgjpBsSZ123Z6JTaBtpcvhhr0ZLxqFdo+Ih1QfXOpIFec/3jSrzdxzxEluPAz BMsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :dkim-signature:dkim-filter; bh=9esAADZqvsVewMzWV7MY9xutixkH9wRs61o/5F3tmmE=; b=ava7Cu2K50VINR2itggpcWgR9Zxefe38hp4xtbSxpIiczM40adDsvSttrNME3+EK1+ fyyxX6zy+KmfsB7WBgPWjxIkEM2QJtegw3ZM2A/yFlYJpG5+EKyzAUYQGNeak+Pl613M 0G7nEpAQgbh07/90cYrmPlpfKkTA0o2PSHvy8Ak8tnGGD74ib7RrSNAG9M75JioJgJu8 /qWA0TebJgVkMmXn8JY+m7z0GdH7gTHZA5MP+obcofgON5zcbGb3i3RCzWIcZGj8s4na FKVLueAaZWvGvpimLYRf06Pi1PH/bOwoj7hPHX80eL27croUcMcIaNX8sFecC7IoFqk/ Z31Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=GVJTOTZb; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn2si1191750edb.378.2020.07.29.05.27.13; Wed, 29 Jul 2020 05:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=GVJTOTZb; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726353AbgG2M1I (ORCPT + 99 others); Wed, 29 Jul 2020 08:27:08 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:60750 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgG2M1I (ORCPT ); Wed, 29 Jul 2020 08:27:08 -0400 Received: from [192.168.254.5] (unknown [50.34.202.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id B6F7013C2B0; Wed, 29 Jul 2020 05:27:07 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com B6F7013C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1596025627; bh=LXc+nfjOtCqCwK3G7cBypWRehRtXELH1bBgp7z3d0/s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GVJTOTZb4zdl/2H3GJYiS8K8USmFlJgXNkDRgmCUdD5DgDW8TTINAfuSZ9FpHLeOh FibPQCkemNMRPePY+Q2xJ9qyn3cns4KBnN7zvK5AOjuK0GtL1Ob94WOJkduc+kjj3D ViZkxRSBw0wQI3DdkYIfit3tXiYGv/4ZWPgQrdGs= Subject: Re: Help getting aesni crypto patch upstream To: Ard Biesheuvel Cc: Linux Crypto Mailing List References: <2a55b661-512b-9479-9fff-0f2e2a581765@candelatech.com> From: Ben Greear Organization: Candela Technologies Message-ID: <04d8e7e3-700b-44b2-e8f2-5126abf21a62@candelatech.com> Date: Wed, 29 Jul 2020 05:27:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 7/28/20 11:06 PM, Ard Biesheuvel wrote: > On Wed, 29 Jul 2020 at 01:03, Ben Greear wrote: >> >> Hello, >> >> As part of my wifi test tool, I need to do decrypt AES on the CPU, and the only way this >> performs well is to use aesni. I've been using a patch for years that does this, but >> recently somewhere between 5.4 and 5.7, the API I've been using has been removed. >> >> Would anyone be interested in getting this support upstream? I'd be happy to pay for >> the effort. >> >> Here is the patch in question: >> >> https://github.com/greearb/linux-ct-5.7/blob/master/wip/0001-crypto-aesni-add-ccm-aes-algorithm-implementation.patch >> >> Please keep me in CC, I'm not subscribed to this list. >> > > Hi Ben, > > Recently, the x86 FPU handling was improved to remove the overhead of > preserving/restoring of the register state, so the issue that this > patch fixes may no longer exist. Did you try? > > In any case, according to the commit log on that patch, the problem is > in the MAC generation, so it might be better to add a cbcmac(aes) > implementation only, and not duplicate all the CCM boilerplate. > Hello, I don't know all of the details, and do not understand the crypto subsystem, but I am pretty sure that I need at least some of this patch. If you can suggest a patch to try I'll be happy to test it to see how it performs. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com