Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp642980ybl; Fri, 16 Aug 2019 01:32:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyDYgxdI8TeaUheqjpp5vVuJUtkS8pzs2ab6TPRFPEIRTJyE5TZaQYY06bvkDLDKXEkRZt X-Received: by 2002:a17:90a:3a8d:: with SMTP id b13mr6136154pjc.75.1565944320779; Fri, 16 Aug 2019 01:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565944320; cv=none; d=google.com; s=arc-20160816; b=osOGKZw5JKWxOM9GOcopwBZVf89tR7NrnfKlhvqkZngF37He3A05OJaTJePAxupRU2 b1n3rEu1DRdL17LL0yu2FICLdyZCuiwxLe8mc+Xo8RTC/l1qCtMrT+TB8xQ/RR6eZwnz W0dLmkijXsFKH4PX9eilWRB17jcH6Drbmv/lfoytKO+wznwjlOhUoWzbEKgKmWvpMDxH dgALd9Jb9fnXALGpgV0r8pDCQ6PpjI23YLYHJLUUwjfvlsNXc/cno6cGXDnKH2LTwnDK Vlpj6BxUSxagmjwjfYYJReQh8/UFu0s4KFCfJBeNHILq1JnDVWrEn8He54U938VXM9Ap MciQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=nMteWjiol09LnNTGAtg+qqwxoUC+aePsLIm1kIpTrJs=; b=d5QCa/wAWklayt4HXChzPdBkpfZEiRFh7YNYwFFisgm5A4/adDtP79lt7w5OFIA4+D N4jzEfnyya9gkGH2lHct8fY1UxFBlT53c+PubX9ohBKa89HqaWHbeJzQZdPvk9Bn6PLC 87ApYCvmvFFKdDCy0n/mudxpWHZ67EyZM07+q7pqcbCJEemEHY0OzvH0cnlMdNU18bUB AlB1aX18ncHY3nkeh7wvKjCZzwLIx49PHGsr6WABQfmnUa06EtQewO8qrdzPAdWclHfA ZIRcqbpG3SFASwCw3OeLQfx8rDPLDzzWe67LihUvps2nECMQycvG1dKYpsMzTkSK/xcP IWiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oCj+GOx8; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si3533126plo.328.2019.08.16.01.31.44; Fri, 16 Aug 2019 01:32:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oCj+GOx8; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726921AbfHPIbd (ORCPT + 99 others); Fri, 16 Aug 2019 04:31:33 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42662 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726893AbfHPIbd (ORCPT ); Fri, 16 Aug 2019 04:31:33 -0400 Received: by mail-wr1-f66.google.com with SMTP id b16so742515wrq.9 for ; Fri, 16 Aug 2019 01:31:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nMteWjiol09LnNTGAtg+qqwxoUC+aePsLIm1kIpTrJs=; b=oCj+GOx8zj3DZDR8aTDgqrL6lshNRYHcEJ9xc7u/k5AAXmEozG5CiyjIcN62uoR4yk /dZXF2qmsL6jlDXs1GlkR2A/kSPm/FFMDejUbnIKqNjQtHvOcl4zAg6VDFE80jvid6MD 52rJCbC9f15qQ3tWLYI9mE+Qjr2VSBI/Xc+5cXxFil0vTyG3GnDha7zPP8OJddjUr/Hq kon3JPJo1IcTbdJL2KaVY8vLnRPATMCLI5ZJACiqczFx0h7wXsZNpPh56pMC+YTAO9cW 6XPg2vjaqtITAY9hZVyE6bhzL/BLKppzKSylT9ZNyy0Rn17zbVd0dOqMqj5AMFhpoO7L oyPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nMteWjiol09LnNTGAtg+qqwxoUC+aePsLIm1kIpTrJs=; b=ShtCdn7Yo2iD6AAxBfwRsHaaAuIUq+CRKjyd5h8Fz4WRqIDef+ilZQYAJSUGO0xnyd JYGnkuxLLGuwtO9VxKFJjdvoF2hcUtUwgYar2CkJYDIGdrWlIWEsvbAmNLHvS0/t6MTE 6e8RsZ+AwGyxiPkG10Z/lJ+wf6FJUpWgJrUvO0AuzsNiz9QvaXWsFd2l0h6tPLCma/Et QSI21F+ScTqqpWIMSBjjsQPXYKZB8jqhlrwkrSRiQ1OH2M5Gn4CmjE+B/r5TDsU/XhWz LL2J0ADn/SxaV3kNcRcWANQgcnDDCqqx1SrgUPorS0uns48avP8KSX9vX0fQC/D/FKJT pGSw== X-Gm-Message-State: APjAAAUxuhdsmNR+8Hg2gyuGCIP3ccR7r5lcJa/jCxrFcM3Q3jHLIzX8 k9M4iNrX6vB87XVtCsyZAMBLYhh8cFCRuI8REeDsOQ== X-Received: by 2002:adf:e8c2:: with SMTP id k2mr9106596wrn.198.1565944291339; Fri, 16 Aug 2019 01:31:31 -0700 (PDT) MIME-Version: 1.0 References: <20190816065936.12214-1-contact@christina-quast.de> In-Reply-To: <20190816065936.12214-1-contact@christina-quast.de> From: Ard Biesheuvel Date: Fri, 16 Aug 2019 11:31:23 +0300 Message-ID: Subject: Re: [PATCH 0/2] Use ccm(aes) aead transform in staging drivers To: Christina Quast Cc: Greg Kroah-Hartman , Payal Kshirsagar , Eric Biggers , Herbert Xu , "open list:ANDROID DRIVERS" , Linux Kernel Mailing List , Anushka Shukla , Bartlomiej Zolnierkiewicz , Zach Turner , "" , Johannes Berg , "David S. Miller" , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 16 Aug 2019 at 10:00, Christina Quast wrote: > > Use ccm(aes) aead transform instead of invoking the AES block cipher > block by block. > Thanks! This eliminates another two users of the bare cipher API, which is not the right abstraction for drivers to use. Reviewed-by: Ard Biesheuvel I don't have the hardware, so I can't test this. > Christina Quast (2): > staging: rtl8192u: ieee80211: ieee80211_crypt_ccmp.c: Use crypto API > ccm(aes) > staging: rtl8192e: rtllib_crypt_ccmp.c: Use crypto API ccm(aes) > > drivers/staging/rtl8192e/Kconfig | 1 + > drivers/staging/rtl8192e/rtllib_crypt_ccmp.c | 187 ++++++++---------- > drivers/staging/rtl8192u/Kconfig | 2 + > .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 187 ++++++++---------- > 4 files changed, 159 insertions(+), 218 deletions(-) > > -- > 2.20.1 >