Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1172777ybh; Thu, 16 Jul 2020 05:20:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygn3ScFzrdciJemUD43c+i0CZvuDHIlBl+pc85By5gND3uNk+0/2yvQG3xRJ7GXV4xTJjC X-Received: by 2002:a17:906:7fc8:: with SMTP id r8mr3624868ejs.412.1594902016853; Thu, 16 Jul 2020 05:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594902016; cv=none; d=google.com; s=arc-20160816; b=m9On27FhIggqtSkQqWnzf/Pgv5+0TV626gr4EoARcQ2aLovim9g9p191kkR0YDJjKd qD8QHqDuqP+Whd3ehob0ikE5LKsED58GJ0vbbm5eeK4RTp0oqCKStm0ZjRoNQZV4q5zi lEpxM9spSSr12iGom2VvmjQCHuZhaYe9Nz/+gsJNusIyAAAGKiL4NUH9YxivXAuxl8rk NHyY2kFhRxgLfATg0WIACulVvZ9E4PMjaOwBchtTZDREgdna9VFsGNuKCkMVnqNMyb0R QyBzlVp/Y35wiE5r0RZ/NXJ+4nAUOpm0cU/17TlvDKPclEBpougLLTsUj4h+4nKOx+U+ YJ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=5HaKQqUbZPyh04utNTAb86Hh1tqU7UlK2woot6IWBnw=; b=sLsW/S/Um8xt8Y5MlHhJG3OLGwt4S2r4tiCozpUmIffFkGfP9fK100+3+FVvytybWC rCHmtVH5JFQngphK0rQbbLF+mTH7E0LjPKFZiP6BldK+ltv2GGscAt/s0ZILKXQJkzXo 3qd0/HS9NpVDurL4aD9ruhUiEAlWYqntbfwdLemITikDoWU/+otAjSagVOFyYwq7Lxh8 dw7gpTxjRvgGdyilVjrucGqXegHjI+PrJJl9MwgXxPcZQI5La0a1MVsweYtinkIq3Npz AQdR+NxsupInrgbWucLZDS3IcWL81v69WpJS8nhBEc1Ze3cOrsKzyVW55cTbISOQ4xj6 iCFQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si3180634edr.42.2020.07.16.05.19.45; Thu, 16 Jul 2020 05:20:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728397AbgGPMTh (ORCPT + 99 others); Thu, 16 Jul 2020 08:19:37 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:40246 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728381AbgGPMTh (ORCPT ); Thu, 16 Jul 2020 08:19:37 -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 1jw2rM-0000pc-Ed; Thu, 16 Jul 2020 22:19:33 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Thu, 16 Jul 2020 22:19:32 +1000 Date: Thu, 16 Jul 2020 22:19:32 +1000 From: Herbert Xu To: Horia =?utf-8?Q?Geant=C4=83?= Cc: 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: <20200716121932.GA31870@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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <59436173-9891-b857-f36b-e97c0a3264c8@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Jul 16, 2020 at 03:07:50PM +0300, Horia Geantă wrote: > > So instead of tk(cbc(aes)) use paes(cbc(aes) or cbc(paes)? Well if we're following the existing paes model then it'd be cbc(paes). > How would this work for hmac(sha512), > paes(hmac(sha512)) or hmac(psha512), or even phmac(sha512)? Perhaps hmac(psha512). The point is whatever scheme you come up with has to be consistent across all drivers. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt