From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B772FC433FB for ; Thu, 16 Jul 2020 13:06:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A0E412065F for ; Thu, 16 Jul 2020 13:06:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728816AbgGPNGG (ORCPT ); Thu, 16 Jul 2020 09:06:06 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:40302 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728087AbgGPNGE (ORCPT ); Thu, 16 Jul 2020 09:06:04 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jw3aF-0001xQ-AH; Thu, 16 Jul 2020 23:05:56 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 16 Jul 2020 23:05:55 +1000 Date: Thu, 16 Jul 2020 23:05:55 +1000 From: Herbert Xu To: "Van Leeuwen, Pascal" Cc: Horia =?utf-8?Q?Geant=C4=83?= , Iuliana Prodan , Aymen Sghaier , "David S. Miller" , Silvano Di Ninno , Franck Lenormand , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: Re: [PATCH 2/2] crypto: caam - support tagged keys for skcipher algorithms Message-ID: <20200716130555.GA32006@gondor.apana.org.au> References: <1594591536-531-1-git-send-email-iuliana.prodan@nxp.com> <1594591536-531-3-git-send-email-iuliana.prodan@nxp.com> <20200716073610.GA28215@gondor.apana.org.au> <0c818beb-05e5-a6c6-717d-782b32afff26@nxp.com> <20200716115253.GA25035@gondor.apana.org.au> <59436173-9891-b857-f36b-e97c0a3264c8@nxp.com> <20200716121932.GA31870@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 16, 2020 at 12:24:49PM +0000, Van Leeuwen, Pascal wrote: > > That would make no sense though, as sha512 does not involve any keys ... > It's the HMAC part that needs the keys. So phmac(sha512) then? You're right, that would be phmac(...). But the point is we don't want each driver to do its own thing so whatever scheme we pick should be applicable to all drivers. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt