From nobody Thu Apr 9 15:51:30 2026 Received: from mx3.wp.pl (mx3.wp.pl [212.77.101.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 248C8256C8B for ; Fri, 6 Mar 2026 22:17:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.77.101.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772835475; cv=none; b=E8bLSSohDw4X++9CL0MlD0ofD+f7UFmLwCByfR5fp+TZJvAkXGfr5IvwI+CvJSrsAN7VEPx8/Xe4cbhJZ7ng6VtQopJdPDD798r/dFyLxQ0ovE2q73TPZS9X4OmvrHBDi1srQH1xHAjh4GTDbwyyIg5rHsIafGKC+f1xNAMW4iY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772835475; c=relaxed/simple; bh=fSwr0ullfbREp0kep0S6IWBiUGNeTKkTL/4Zfgz2mUc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=itqnzHydgrY7eyIkGk0+ZT2tYJ3EQSELy1qxf/9nAAxfymHaDaM3x/StOT91113oespWOOru8/YjtMCiazA4pjuf3Ckiynv5PPk5mPDXFN9QOG4HGRidodIbv2ZQMIn6l5X5HDU+p6TkZzIP+f1sNWq1DIjJWjyqBcMggg053IA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl; spf=pass smtp.mailfrom=wp.pl; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b=Xs67FUKs; arc=none smtp.client-ip=212.77.101.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=wp.pl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wp.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wp.pl header.i=@wp.pl header.b="Xs67FUKs" Received: (wp-smtpd smtp.wp.pl 22901 invoked from network); 6 Mar 2026 23:17:44 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wp.pl; s=20241105; t=1772835464; bh=ma/oSoBqzYB5BDGqEVHE7XguKpNXuAmKrAV3pLLp04c=; h=From:To:Cc:Subject; b=Xs67FUKsz1kqmUjgr4ZZtaC00az2n2wdqP22Qel8/6V1OuQ8RqxDwYqeFbn6jGmru Y8J5PTHQXcce2iqzKIyieX2/Wx2O2CY5PHhtDEWuyR1/cIGTGwyGQQlupDacc4u8AL GI6hVMO+k7OkCXiPmRpLWNkLKLilyahh/UhYthpjYIuj1SaoNMWKuW7fs/3uT6v1FZ 2OJXQuqywwleFbpeCCerg1+dUQZJflwe4gUcPIJJLBfE+7DJnpuymC0op6+hEv71GZ 92dphW7LgqIEQAUSZqo+6/HYwunzEO0mZ0a+S0ergGdDEG7E9V5PjXc44F7pyGdEwI QutgL+JBxLZAQ== Received: from 83.24.116.171.ipv4.supernova.orange.pl (HELO laptop-olek.lan) (olek2@wp.pl@[83.24.116.171]) (envelope-sender ) by smtp.wp.pl (WP-SMTPD) with TLS_AES_256_GCM_SHA384 encrypted SMTP for ; 6 Mar 2026 23:17:44 +0100 From: Aleksander Jan Bajkowski To: ansuelsmth@gmail.com, atenart@kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, vschagen@icloud.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Aleksander Jan Bajkowski Subject: [PATCH] crypto: inside-secure/eip93 - register hash before authenc algorithms Date: Fri, 6 Mar 2026 23:17:40 +0100 Message-ID: <20260306221742.1801119-1-olek2@wp.pl> X-Mailer: git-send-email 2.47.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-WP-DKIM-Status: good (id: wp.pl) X-WP-MailID: d8f1101690aa9173361d06dc4931a3fc X-WP-AV: skaner antywirusowy Poczty Wirtualnej Polski X-WP-SPAM: NO 0000009 [Uerx] Content-Type: text/plain; charset="utf-8" Register hash before hmac and authenc algorithms. This will ensure selftests pass at startup. Previously, selftests failed on the crypto_alloc_ahash() function since the associated algorithm was not yet registered. Fixes following error: ... [ 18.375811] alg: self-tests for authenc(hmac(sha1),cbc(aes)) using authe= nc(hmac(sha1-eip93),cbc(aes-eip93)) failed (rc=3D-2) [ 18.382140] alg: self-tests for authenc(hmac(sha224),rfc3686(ctr(aes))) = using authenc(hmac(sha224-eip93),rfc3686(ctr(aes-eip93))) failed (rc=3D-2) [ 18.395029] alg: aead: authenc(hmac(sha256-eip93),cbc(des-eip93)) setkey= failed on test vector 0; expected_error=3D0, actual_error=3D-2, flags=3D0x1 [ 18.409734] alg: aead: authenc(hmac(md5-eip93),cbc(des3_ede-eip93)) setk= ey failed on test vector 0; expected_error=3D0, actual_error=3D-2, flags=3D= 0x1 ... Fixes: 9739f5f93b78 ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 cry= pto engine support") Signed-off-by: Aleksander Jan Bajkowski --- drivers/crypto/inside-secure/eip93/eip93-main.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/crypto/inside-secure/eip93/eip93-main.c b/drivers/cryp= to/inside-secure/eip93/eip93-main.c index b7fd9795062d..76858bb4fcc2 100644 --- a/drivers/crypto/inside-secure/eip93/eip93-main.c +++ b/drivers/crypto/inside-secure/eip93/eip93-main.c @@ -36,6 +36,14 @@ static struct eip93_alg_template *eip93_algs[] =3D { &eip93_alg_cbc_aes, &eip93_alg_ctr_aes, &eip93_alg_rfc3686_aes, + &eip93_alg_md5, + &eip93_alg_sha1, + &eip93_alg_sha224, + &eip93_alg_sha256, + &eip93_alg_hmac_md5, + &eip93_alg_hmac_sha1, + &eip93_alg_hmac_sha224, + &eip93_alg_hmac_sha256, &eip93_alg_authenc_hmac_md5_cbc_des, &eip93_alg_authenc_hmac_sha1_cbc_des, &eip93_alg_authenc_hmac_sha224_cbc_des, @@ -52,14 +60,6 @@ static struct eip93_alg_template *eip93_algs[] =3D { &eip93_alg_authenc_hmac_sha1_rfc3686_aes, &eip93_alg_authenc_hmac_sha224_rfc3686_aes, &eip93_alg_authenc_hmac_sha256_rfc3686_aes, - &eip93_alg_md5, - &eip93_alg_sha1, - &eip93_alg_sha224, - &eip93_alg_sha256, - &eip93_alg_hmac_md5, - &eip93_alg_hmac_sha1, - &eip93_alg_hmac_sha224, - &eip93_alg_hmac_sha256, }; =20 inline void eip93_irq_disable(struct eip93_device *eip93, u32 mask) --=20 2.47.3