Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5756973ybp; Tue, 15 Oct 2019 04:41:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1srBcrGoBvBK8qTlQr88/o2Y+Eu3bIzMBpYDqcWLBE1L5UiRyi1zxihAI65Tol2xOqe+l X-Received: by 2002:a17:906:b7d0:: with SMTP id fy16mr33981487ejb.207.1571139717665; Tue, 15 Oct 2019 04:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571139717; cv=none; d=google.com; s=arc-20160816; b=BnGB0jTdmKhOka72FmCvdXRffumx78XmOYPw8d+gIy+eccYvS4wEHgYU0U+cWiJXtL Qao30d9FSNu7MtWVneMgh6iABM/If6KEdq4eFaFaMjdap7Qg1leMp3PYYZLCIhXjFbUl oKuWmqB69lcMTIGCU36XXHv5uFrd3TnjjrcSci9JxT2vGex/oCTxjBmgb/Fi+CMoUMHr Cc1JoqhpsKbrzDroEI8HIwK5TO7l43IIoia+lK8YYGnO7F64k6sgJ1V7dOQJyOVQSD4+ vO8Hk0GJWuPgiAHJLUYx1KyrWIr6gDaAA5HyUASwZ6BCCAMuEZYHe0FeTcqgNlJkle2w sJvA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=NyesQWTuvXO6kEAohzVxND+5nW0ZsL+t3l5nme1Rsn0=; b=tX+D2q8LIHSMAAHldv65K74zEG0ugzfNoiJYfmIRD0Y4aKbKTaKcfLr4vzhYtmukIX EcGBnEY2O/ctA3qkrxpM+KeviSK63619atXrNNfmEUlfDxravewWhMbz4vKuLsNE+Tzj wKM9Nzpp1fNPpvngctpMoBZI5WKYD/CQWb9uZY2FGtYzyvTz1QEBK5pPbc2oNN8FZ82A u/OJ3Ajk+8lFSleAsE2rvn2jSZ9/rEokqL6WK09e7cDbbP9KsToWRwUIzVyUW2nf0Hp1 XSsqmWiAtWI6muQk4hgbyu6jJidmkaNUm/K6suYCOgRXqUgftODNrH/jm8BiNdWsTdVG OATA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OhSbn61m; 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 l22si13001283edb.241.2019.10.15.04.41.28; Tue, 15 Oct 2019 04:41:57 -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=OhSbn61m; 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 S1726296AbfJOKbo (ORCPT + 99 others); Tue, 15 Oct 2019 06:31:44 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36666 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbfJOKbn (ORCPT ); Tue, 15 Oct 2019 06:31:43 -0400 Received: by mail-wm1-f66.google.com with SMTP id m18so19711765wmc.1 for ; Tue, 15 Oct 2019 03:31:42 -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:content-transfer-encoding; bh=NyesQWTuvXO6kEAohzVxND+5nW0ZsL+t3l5nme1Rsn0=; b=OhSbn61m0jwUeoM2Gbtb8R350ZOWMXmrO8gesaATTj3rlHsl7HvG2SpwjW50lSEiBJ zt7g5hu0MbBC9PEdNN90xjkKR5C3i1ggatfNeTzAAVjntlp5dSLpCkAUQMqg0Q+lA1ix NrNbGvlFiTzv8S8RHToxrG/W/8mKaRdb6DHgQNNcorTlYIBQspVRq8QwiNYR93rsaqCT S9o5aXMHvOL7eiOWNnL78IDx4CTMWTrAbk0x73A+90DHlJI2BKha/1U0eLo6WftgWS1C Zvja1fgaH27eAByigY+5Xm71MFLBXwmk8I6VSmrXS8XpjeTFsErTqquR3YbubMh7tR5O 7RGw== 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:content-transfer-encoding; bh=NyesQWTuvXO6kEAohzVxND+5nW0ZsL+t3l5nme1Rsn0=; b=GM9gyKhTnKaSDQVECO8bOGh0GX0WDhM74sBkmVnv0aw5QZPhRiJtUdZA7A/dvUtcbF hgEpgx3kqw/VJtjUmXPsy6ni36O8Y4OirgKOSE1VF+D1aynEX1Rs+rw189cU1Oom1YrL oSpWcSOEjplnbDijGBGnGXAn9B61Cm7357X3j0sUCaWdVtAStmpbX8+A1LGbjapRgLFY zAI+DSNeYh05fr1G9puUZONG+uxnkpBl95g1ydg5xD08TmqAN9KpklSkRbD8FvdaOaFf oi/cAK5cUjIE1EDy7wJEa2wFD9XgTodxxFmMFLY/Pil0bdJMdG5/JixUBmjFSIb/4/oG 7vrQ== X-Gm-Message-State: APjAAAWM+HkAZ9yaOZPrEYY6hOJ8U9yXo5iiFOpgZkZIiG1h6AYiYvHK eJxG/6Lzs6OxELeyjL3mUTXs0lEPckcAeGYhIqUouQ== X-Received: by 2002:a1c:a9c5:: with SMTP id s188mr17099745wme.61.1571135502001; Tue, 15 Oct 2019 03:31:42 -0700 (PDT) MIME-Version: 1.0 References: <20191014121910.7264-1-ard.biesheuvel@linaro.org> <20191014121910.7264-9-ard.biesheuvel@linaro.org> <2e544398-5407-430c-84b6-3f946f5dea0c@microchip.com> In-Reply-To: <2e544398-5407-430c-84b6-3f946f5dea0c@microchip.com> From: Ard Biesheuvel Date: Tue, 15 Oct 2019 12:31:31 +0200 Message-ID: Subject: Re: [PATCH 08/25] crypto: atmel-aes - switch to skcipher API To: Tudor-Dan Ambarus Cc: "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Herbert Xu , "David S. Miller" , Eric Biggers , linux-arm-kernel , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, 15 Oct 2019 at 12:17, wrote: > > Hi, Ard, > > Thanks for working on this. > > On 10/14/2019 03:18 PM, Ard Biesheuvel wrote: > > Commit 7a7ffe65c8c5 ("crypto: skcipher - Add top-level skcipher interfa= ce") > > dated 20 august 2015 introduced the new skcipher API which is supposed = to > > replace both blkcipher and ablkcipher. While all consumers of the API h= ave > > been converted long ago, some producers of the ablkcipher remain, forci= ng > > us to keep the ablkcipher support routines alive, along with the matchi= ng > > code to expose [a]blkciphers via the skcipher API. > > > > So switch this driver to the skcipher API, allowing us to finally drop = the > > blkcipher code in the near future. > > > > Cc: Nicolas Ferre > > Cc: Alexandre Belloni > > Cc: Ludovic Desroches > > Signed-off-by: Ard Biesheuvel > > --- > > drivers/crypto/atmel-aes.c | 507 ++++++++++---------- > > 1 file changed, 244 insertions(+), 263 deletions(-) > > drivers/crypto/atmel-aes.c: In function =E2=80=98atmel_aes_register_algs= =E2=80=99: > drivers/crypto/atmel-aes.c:2515:24: error: passing argument 1 of =E2=80= =98crypto_unregister_alg=E2=80=99 from incompatible pointer type [-Werror= =3Dincompatible-pointer-types] > crypto_unregister_alg(&aes_xts_alg); > ^ > In file included from drivers/crypto/atmel-aes.c:32:0: > ./include/linux/crypto.h:703:5: note: expected =E2=80=98struct crypto_alg= *=E2=80=99 but argument is of type =E2=80=98struct skcipher_alg *=E2=80=99 > int crypto_unregister_alg(struct crypto_alg *alg); > ^~~~~~~~~~~~~~~~~~~~~ > Apologies for that. I was pretty sure I build tested all patches, so I should have spotted this myself. > and when applying tdes: > Applying: crypto: atmel-tdes - switch to skcipher API > .git/rebase-apply/patch:637: trailing whitespace. > > warning: 1 line adds whitespace errors. > > I'll try to review the atmel part next week. > > Cheers, > ta Thanks,