Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp288821lqh; Mon, 6 May 2024 21:20:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUVaUBMhRi8jSt7bwVrz+E2MkI47TjM36V0fvbA2LRJ303o61ZxTib7csMySLtB0TQl7TxG3cjBv8wl7JiD5HGQ8okdXBsDVxKcVP1QQ== X-Google-Smtp-Source: AGHT+IFuBbXr58oJR8xjz7cWrYMqNvA4aC0R7lsz6u6YADzKQx4gOE2qSyV06F3KI4pOdWajqqNh X-Received: by 2002:a05:620a:4507:b0:790:72ef:50cb with SMTP id t7-20020a05620a450700b0079072ef50cbmr14807175qkp.60.1715055615047; Mon, 06 May 2024 21:20:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715055615; cv=pass; d=google.com; s=arc-20160816; b=gf2M6gxGkoest3x23VD/jkE4iKkSEliBRQ0eHCUxnHZxg9gX08eKV0/JeFEUe3XpxS /kTTK2x4js0B42URBysQpyL+2lPMom8biqwNU7gRpFZ14xnwC3u20mik8B0j1RDLbLmE n7ehT5Dj9c6AjmkfESMtmg6nm0Ac+nB+m+DfkXByjrvlzHdFtuZnpvR/3sSFuvot20ma bL4hrbn/3DTB5lLufTba2SvVRp9pkBAYEd6W4N6Vwk/vXhqPIefWAvEKvQYeXHqX73v5 GNEIFq0iknsKoZ7R/ZHbelvfo7etzFg1QVSaYy+oAPmhql9UBNA5LEz6tQ8B2Wf8kIMY 5F2g== 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=wjW97QSBWDvTIplxhYWZ8DZ+VoQ28QSXWBur6UjSQqg=; fh=at+TcqNxcZ5x+Uf2GbARaxkWTOX2mfqzzQrkXRVfXgo=; b=BJy6XHXGx7K1Wyx27h2k8jU1pTx4kQd+hdspMOyexsQVmjuYU/bLgdGNAAdyCw62Kj 1LnlqrOKMa9Sf3D5SGjEvnmcgKZl+cyZWeKJgFoNqnIYl+dfveGb/Xl/7Q9nKGG4iEog KLv71cis4AaY+TwXlJfeQ7+3q+MH8Xzx7hRpJWXugO4fIJC859Dpn87z52UPvtVv0gJe NTPzCWQ8EPIjC5z9azsknQ7VeKrX317PNZgTl1inBob3zBGTf9YG86LJvWt+P2mmD341 4JOiriToJxRm02qn8tjGWOmHFmcJLvess3K5r3i3C/xXzNrU4j5s+6T7/jxL/heGzO+K llmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vayavyalabs.com header.s=google header.b=J2vZI3b8; 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-4056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4056-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vayavyalabs.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f6-20020ae9ea06000000b0078d66fa1421si10275289qkg.457.2024.05.06.21.20.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 21:20:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@vayavyalabs.com header.s=google header.b=J2vZI3b8; 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-4056-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4056-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C16581C22B29 for ; Tue, 7 May 2024 04:20:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3133B4EB5C; Tue, 7 May 2024 04:20:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=vayavyalabs.com header.i=@vayavyalabs.com header.b="J2vZI3b8" X-Original-To: linux-crypto@vger.kernel.org Received: from mail-yw1-f176.google.com (mail-yw1-f176.google.com [209.85.128.176]) (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 5ED0242A97 for ; Tue, 7 May 2024 04:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715055610; cv=none; b=M/LaJ7HUVgE7jgVxPNag0iwxtMxQdPTLBZELSGUy8n19Q1xGRrOfnQiy+vs1PfLjseipuT3quSa1GRsmbeCiK90HfhCCgjE9ylrAF+pKBXZ/nfFnrqcagptZGLagMY/q/iVDuEq/EdBOL/1TQf6m1xi8E1vhUheYygkFitu7B9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715055610; c=relaxed/simple; bh=7jFYBX93lPII7WWJ20GNsWg9Jty5hZkCmJWWElMOmck=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=mge2yDp09G7l28PKaVl62h1TDkRqD35MPWl2PE6+nFljayF3+arenkGXOQ8xohbKn1qBINmj4CCualnube2uewJE4xAIdmRnb6bYAxSS3TzEl/6WxPtaT+lc5X0lHidwv4xnBKjsigW0e7+MWNVJgTzsRk6VlS88SvN89ve7pdg= 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=J2vZI3b8; arc=none smtp.client-ip=209.85.128.176 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-yw1-f176.google.com with SMTP id 00721157ae682-61b62005f38so28509937b3.2 for ; Mon, 06 May 2024 21:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vayavyalabs.com; s=google; t=1715055608; x=1715660408; 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=wjW97QSBWDvTIplxhYWZ8DZ+VoQ28QSXWBur6UjSQqg=; b=J2vZI3b8YNZUbOjRaLqnSsVR6n6OjS2hVgCJ0YKfjoKLmwJbIKk+isltTGRmlcRhC1 R1whm8MmL+PlwE6YFqGInA21NNaSE2RIookvVXgm56iKdfVpkqbIuYwGCZ6CRRvgvM6p dILt+Vh5YzmZ+oZXE2v0XsjX4t3EsATQ7lqG8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715055608; x=1715660408; 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=wjW97QSBWDvTIplxhYWZ8DZ+VoQ28QSXWBur6UjSQqg=; b=qJkYsK5sfFH7CM79NcjVTT23TVn+Yx4AnlDkRpjefW3XJyDglOpkWjYtwMarwNNCcY 9LVON01IN99nUrIxyy8KzUqSb8qk4tL2zQM/5pJEyMW2TOZEjLh6h24W/LGUzhGo7Wl+ cmcNc9gg7P8A2m1eWWtWGLKKn39fyauwiRpvaOTvwEu3RapqP1BxVE8BgjLu3KEH6Y4U ZDtzsf1ER8j/rh7/0/HM7oy+8c9JdP2CdpTWUlCy/LH1+Y1xYRAhAIdT1gHtp8N35t4c miIUWOMw4bJx1d+Co7NKirq4iRlOWu1eV544Sa4NPle0w754iui4KG1YSYelFFiqX0mf moFA== X-Gm-Message-State: AOJu0YxhnQRc1OpAh/lkE1E8cc0b4x9u1TxGNSS6D6iXXRSKqQE4WF34 AsqUn8N5veondV9rHAScLuG76Vxps0sOUlyPfTMM78TF34yA8pISMerrr5xSXcdrnzHLrB10oAc PgU5WveDc9BU9luwoBMnzCSO6ndLMNkywYN9/Gw== X-Received: by 2002:a0d:ec09:0:b0:614:7146:ea93 with SMTP id q9-20020a0dec09000000b006147146ea93mr11328857ywn.25.1715055608360; Mon, 06 May 2024 21:20:08 -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: Tue, 7 May 2024 09:49:57 +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 Hi Herbert, Yes, we have enabled the CRYPTO_MANAGER_EXTRA_TESTS and all tests are passing with the default 100 iterations. We bumped the iterations to 500 and verified that as well for all our algos. About the export function, yes its hash state that's present inside "spacc_crypto_ctx". which also holds the intermediate digest. The SPAcc IP supports multiple hashes, ciphers and aeads. We use the same context structure across all algos. Do l= et me know if that needs to be modified. Warm regards, PK On Fri, May 3, 2024 at 3:59=E2=80=AFPM Herbert Xu wrote: > > On Fri, Apr 26, 2024 at 09:55:40AM +0530, Pavitrakumar M wrote: > . > > +static int spacc_hash_export(struct ahash_request *req, void *out) > > +{ > > + const struct spacc_crypto_reqctx *ctx =3D ahash_request_ctx(req); > > + > > + memcpy(out, ctx, sizeof(*ctx)); > > + > > + return 0; > > +} > > Did you test this with CRYPTO_MANAGER_EXTRA_TESTS enabled? > > When a hash exports its state, it's meant to write out the actual > partial hash state, not a bunch of kernel pointers. > > Cheers, > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt