Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp47580lqo; Wed, 15 May 2024 20:50:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJgtlzIoBhMZzxGQqfVuaLkxj5rbNGevScpZHb+uU/jcHkK4HLXoqJfnCygosMT5nkAl7EpO6MDPAbmgNGcJFaRGnISo9SPCDccFLC9g== X-Google-Smtp-Source: AGHT+IElcAx77p/uGZciwKYvQcKN+IOrz3nUx0Z/2JrobZHWk9baF2+9HPyvbEWV3c+OtTa9dzp7 X-Received: by 2002:a17:907:da4:b0:a59:9e01:e788 with SMTP id a640c23a62f3a-a5a2d5d0228mr1143958466b.34.1715831441870; Wed, 15 May 2024 20:50:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715831441; cv=pass; d=google.com; s=arc-20160816; b=n1/ZlsvimTsMtmvXGRoxQpA7MoHhob8+biFTkqWTTAyzAfVCwCGmeBUI4InrX/TqHf qhHoyEkywxzUMVeeheDzN/OO2LVWTV6uqPTgKaSSUgbTPKilBWTMnjnjASp5uzpAXc6i BEnG9I2aduDBZarW6l72wK5BpIUztl/f4MwqvzPEJkkbOz3a+zUwOPYPVnDjPAPANuJ+ QDJTUq0km4UL5nxAd/RUpS2QWXHO1UZLFEhxvfuQ2FgrVsXOHMCVh6iEcyQY84m/nkos Atc41VPwP9zRNrBT+wWJMCyQAHxhgkCnRzmSXxI/87FEO9BUGSbwrvdBK5rX+DgEkqkM uw3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=+wnK0WjZixLo/MtWnjkyeiV+YNAfaoH1VmBopqFJPW8=; fh=at+TcqNxcZ5x+Uf2GbARaxkWTOX2mfqzzQrkXRVfXgo=; b=c8p+1FlMxWXnegDvurmuUQZklaXwhq/lDEH0sjrbUvlqJSd/lZMkiUTaKjxCojU9Cv Dqwfw1BTQNPpxV7S6Teu4OMBwqSp2Plg665m9XapE5J0rHxGVQZHbi2XftqcqU2Ak2Yz hp9hXLzoc4lPAcu6FrV9wKl/C3I3Dz8noz/w3ajGO6D7jtzQ9NLhfFgJBJJoWWaucjc0 kLt5IbOa09CQzIWGeRL1mX9Fl7Z1nVFhy5rY86SGzTN/UH5K7k0xb/uQQUnmBB21qShk 1vfJBDvC50LIHHMkhu1tpDATibP7bssdGzfRU23w7h/Beg54CeD1jv1meNGVnSLTel5Y M5iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vayavyalabs.com header.s=google header.b=JoHf+kb2; arc=pass (i=1 spf=pass spfdomain=vayavyalabs.com dkim=pass dkdomain=vayavyalabs.com dmarc=pass fromdomain=vayavyalabs.com); spf=pass (google.com: domain of linux-crypto+bounces-4194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vayavyalabs.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a1b57b177si868685766b.997.2024.05.15.20.50.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 20:50:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@vayavyalabs.com header.s=google header.b=JoHf+kb2; arc=pass (i=1 spf=pass spfdomain=vayavyalabs.com dkim=pass dkdomain=vayavyalabs.com dmarc=pass fromdomain=vayavyalabs.com); spf=pass (google.com: domain of linux-crypto+bounces-4194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vayavyalabs.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8ECF71F2355A for ; Thu, 16 May 2024 03:50:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24D294411; Thu, 16 May 2024 03:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=vayavyalabs.com header.i=@vayavyalabs.com header.b="JoHf+kb2" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-yb1-f170.google.com (mail-yb1-f170.google.com [209.85.219.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71FFA4A0C for ; Thu, 16 May 2024 03:50:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715831436; cv=none; b=uRPbMgAXiUFInmT8ffhf10PVazrefUL41uAfFX7po4vT/hWWW9WE/2hMLH116hzokVle0G3i1PntVke6sxeLzICxtQTX628J4r/gFzRALkajw0dlMRoK+rvRfTlzRyky0t9VvwybgH3rJOAAzZGgWe45m0UM/NJNRbCFh2uUB9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715831436; c=relaxed/simple; bh=hHa6kmharfqHVPtuc3yO5chQaYVtBbZpk4gsvsfx378=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=YV8TZfaQEMCiIJUBSahUnFo4FKsDgsx9qkBPBQ3m9VAoxBp4keeWPXqhJpEYEZ3Z46lZu2BPtzJPa4cYmBe+THD6QvJErsJ3p5Kw7E85mXQu3xGP/nVMW+TLDFrgRf+D5gHvZ2C9o3+84/ID+oyhdFgefdP5N1BLxKwWCgjHHR4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=vayavyalabs.com; spf=pass smtp.mailfrom=vayavyalabs.com; dkim=pass (1024-bit key) header.d=vayavyalabs.com header.i=@vayavyalabs.com header.b=JoHf+kb2; arc=none smtp.client-ip=209.85.219.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=vayavyalabs.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vayavyalabs.com Received: by mail-yb1-f170.google.com with SMTP id 3f1490d57ef6-de61424f478so7444050276.0 for ; Wed, 15 May 2024 20:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vayavyalabs.com; s=google; t=1715831434; x=1716436234; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+wnK0WjZixLo/MtWnjkyeiV+YNAfaoH1VmBopqFJPW8=; b=JoHf+kb2iOT93cRPKX1gdMJa9sckS+7W892HnJuKttsFaRhoeMUrBHzUYcA6/dMosg RVTp/aFPYjUk4NMtrKNlDQOt5EsCC+rNVYr9zNrzRbf1DUA739rZW/ZpDMOUI7AL5VJf llOcxnUmifOGdBljplOreP2wGTqcYGn0vIZd4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715831434; x=1716436234; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+wnK0WjZixLo/MtWnjkyeiV+YNAfaoH1VmBopqFJPW8=; b=k7ftG2IMbMjM/7xjgcg6+NoJNMMdj4EkZ3CFcxtDG3xv2S0P1IrVuETrhFAXpDSFuf fK0VeJnovlBeZbCM0jCdrKYqNKY1G6Niv4Ns9Sv145H6U4UuS92OScXKClfye3oCpjGH eMjMqVFyvIoaywP6BmCOJ5sbMYPStUEZEpbnTuGwvDHUJe2k7Qh9z/a+6WWAPR9UETdn CZ1slK2T/kmsvQybfsHjXVQ3hGnOB005YNKHCHKR9vTCyWckfMsLp9D1QK0S8t+vZB1P adSmr3onGlK+hN23N/VLew4gUDhpSpXZuesECteKa+iWnXFLf9LY2SeK+hnosXxkFUpH oHwg== X-Gm-Message-State: AOJu0YxQrI7wtl16yUtyBgPKPVOrAHBjcpd4lXc/NLkUFe2+IfYtmK+S vagZlf++lnUtpyP57pRVjbEjLYSzRuthaZAZ/NvwgQmuxBUSTSgyUAIHDhZur2kX/p2VVfv/7rl 8oxijytwaf85F10VSZYThfAT4NnmFuRL2V2Ejt70LwwNmbiGV X-Received: by 2002:a25:820d:0:b0:dd0:972b:d218 with SMTP id 3f1490d57ef6-dee4f370323mr15839405276.41.1715831434476; Wed, 15 May 2024 20:50:34 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240426042544.3545690-1-pavitrakumarm@vayavyalabs.com> <20240426042544.3545690-4-pavitrakumarm@vayavyalabs.com> In-Reply-To: From: Pavitrakumar Managutte Date: Thu, 16 May 2024 09:20:23 +0530 Message-ID: Subject: Re: [PATCH v3 3/7] Add SPAcc ahash support To: Herbert Xu Cc: linux-crypto@vger.kernel.org, Ruud.Derwig@synopsys.com, manjunath.hadli@vayavyalabs.com, bhoomikak@vayavyalabs.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sure Herbert, Thanks a lot for the quick reply. I will update the partial hashing code to do a software fallback and push the patch. Warm regards, PK On Thu, May 16, 2024 at 8:45=E2=80=AFAM Herbert Xu wrote: > > On Thu, May 16, 2024 at 08:41:57AM +0530, Pavitrakumar Managutte wrote: > > Hi Herbert, > > The SPAcc crypto accelerator has the below design > > > > 1. The SPAcc does not allow us to read internal context (including > > the intermediate hash). > > The hardware context is inaccessible for security reasons. > > In that case you cannot support the partial hashing APIs in Linux. > > You should use a software fallback for everything but the digest > call. > > Cheers, > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt