From patchwork Thu Oct 3 21:50:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Mao X-Patchwork-Id: 1992595 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=eVHGWf/V; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XKbtg61kCz1xt7 for ; Fri, 4 Oct 2024 14:59:23 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7016E8903C; Fri, 4 Oct 2024 06:57:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="eVHGWf/V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EF75388C6D; Thu, 3 Oct 2024 23:57:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8D2D288CC5 for ; Thu, 3 Oct 2024 23:57:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=raymond.mao@linaro.org Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-45d8f76eca7so12057271cf.2 for ; Thu, 03 Oct 2024 14:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727992638; x=1728597438; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Tqmn+/zhCD7YZVVa3S6riumt5e0ThDRhzu/1y1KfKds=; b=eVHGWf/V7jbj4QE9vSEBYbGjTe0YODqdtxFDxgYNK4OAMWFbIjy0TpHZv7vzXe338t wW5RlGRlHbSF+dddilEHq5TRgEDaz5ycRRw46bQWwW0HrEbW2vFPS2FH67DsegsVYPdY FCexlZ/aKuvaQTcxDOa2+OGcjrasbySL33o9ySRPveETC3t8Yd1Ui3DLf2kvIDxFGNhJ YvTx+0GHkU6KrrpI5g8jC5HFnwpZuz8+yYZ1YNqZRQLfdR8SE4baFAbAQE8GsI8Yibdz 0/e2Vhs+Br5bv+YL5PWElOLs0BybBWEBSK6yST5rMXcP46qIVol5gousvr3IG7sLLjm1 /p3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727992638; x=1728597438; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tqmn+/zhCD7YZVVa3S6riumt5e0ThDRhzu/1y1KfKds=; b=b9DseHTj79RQ0IsMvMEou9wZv8qbY5O/TRlYFxbT6U8gR9rVPUXgjrXlJGTVfwQLF+ e2jaOedbSjEmMTYlrBeSXCkG9cWb4K6+LhsNLXlyNbKNU4SywQHB6ed9FdLGCKLyTBY2 XA3AB3mvEriN501sPz3nk43YgIrSrzvJ9RIoBCHT4DLKA+8fPlM4EdNqPBOH3Z4n0s/f BW/60sbMkLnpLImivUGGy9M87juKjhpKxoT0q6EhRgsKJVfSmYx86l8GuCmcfeI+jJP9 nMZ2bNIbTulKQd5jast/si0EClONbeQN809EvqHVL+m9fIw8IhGBs6gMayugBFFlscop Zjkw== X-Gm-Message-State: AOJu0YzZKqqH4xGgaDus4M5HSwhQpJCNXl6v8AoAxMJa7Gi0/Uz1WYyZ yuQjTx2HiokNfU4RGP+2v9YLghbRZ++pvyLvlEvHacTdYJzlpl13px5fdcXKIF2dJashKqVI5SY G X-Google-Smtp-Source: AGHT+IEZN3K/O3fQ2XTwgzRLDEPVvfpqj3Iu3RXmAfR7h5p9WyxmVFSBglsAcRsr29gNX4Tkhibfnw== X-Received: by 2002:a05:622a:1345:b0:458:3215:960c with SMTP id d75a77b69052e-45d9ba82d2amr9261841cf.29.1727992638158; Thu, 03 Oct 2024 14:57:18 -0700 (PDT) Received: from ubuntu.localdomain (pool-174-114-184-37.cpe.net.cable.rogers.com. [174.114.184.37]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-45d92ddf5c4sm9001541cf.18.2024.10.03.14.57.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 14:57:17 -0700 (PDT) From: Raymond Mao To: u-boot@lists.denx.de Cc: manish.pandey2@arm.com, Raymond Mao , Ilias Apalodimas , Tom Rini , Stefan Bosch , Mario Six , Andy Shevchenko , Michal Simek , Tuomas Tynkkynen , Simon Glass , Peng Fan , Jaehoon Chung , Jiaxun Yang , Heinrich Schuchardt , Leo Yu-Chi Liang , Sumit Garg , Sean Anderson , Rasmus Villemoes , Andrew Davis , Bryan Brattlof , "Leon M. Busch-George" , AKASHI Takahiro , Alexander Gendin , Jonathan Humphreys , Mattijs Korpershoek , Marek Vasut , Paul Barker , Linus Walleij , Neil Armstrong , Oleksandr Suvorov , Jonas Karlman , Greg Malysa , Kongyang Liu , Sughosh Ganu Subject: [PATCH v8 11/27] mbedtls/external: update MbedTLS PKCS7 test suites Date: Thu, 3 Oct 2024 14:50:24 -0700 Message-Id: <20241003215112.3103601-12-raymond.mao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241003215112.3103601-1-raymond.mao@linaro.org> References: <20241003215112.3103601-1-raymond.mao@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 04 Oct 2024 06:57:18 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Update the PKCS7 test suites for multiple certs. The PR for this patch is at: https://github.com/Mbed-TLS/mbedtls/pull/9001 For enabling EFI loader PKCS7 features with MbedTLS build, we need this patch on top of MbedTLS v3.6.0 before it is merged into the next MbedTLS LTS release. Signed-off-by: Raymond Mao Acked-by: Ilias Apalodimas --- Changes in v2 - None. Changes in v3 - Update commit message. Changes in v4 - None. Changes in v5 - None. Changes in v6 - None. Changes in v7 - None. Changes in v8 - None .../external/mbedtls/tests/suites/test_suite_pkcs7.data | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mbedtls/external/mbedtls/tests/suites/test_suite_pkcs7.data b/lib/mbedtls/external/mbedtls/tests/suites/test_suite_pkcs7.data index d3b83cdf0aa..2dd1c56109f 100644 --- a/lib/mbedtls/external/mbedtls/tests/suites/test_suite_pkcs7.data +++ b/lib/mbedtls/external/mbedtls/tests/suites/test_suite_pkcs7.data @@ -14,9 +14,9 @@ PKCS7 Signed Data Parse with zero signers depends_on:MBEDTLS_MD_CAN_SHA256 pkcs7_parse:"data_files/pkcs7_data_no_signers.der":MBEDTLS_PKCS7_SIGNED_DATA -PKCS7 Signed Data Parse Fail with multiple certs #4 +PKCS7 Signed Data Parse Pass with multiple certs #4 depends_on:MBEDTLS_MD_CAN_SHA256:MBEDTLS_RSA_C -pkcs7_parse:"data_files/pkcs7_data_multiple_certs_signed.der":MBEDTLS_ERR_PKCS7_FEATURE_UNAVAILABLE +pkcs7_parse:"data_files/pkcs7_data_multiple_certs_signed.der":MBEDTLS_PKCS7_SIGNED_DATA PKCS7 Signed Data Parse Fail with corrupted cert #5.0 depends_on:MBEDTLS_MD_CAN_SHA256:MBEDTLS_RSA_C