From patchwork Fri Aug 16 21:44:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Mao X-Patchwork-Id: 1973401 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=LG++wCWy; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wly9s69Blz1yXb for ; Sat, 17 Aug 2024 08:59:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4380688C7B; Sat, 17 Aug 2024 00:59:04 +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="LG++wCWy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8C10B88C50; Fri, 16 Aug 2024 23:49:37 +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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf2d.google.com (mail-qv1-xf2d.google.com [IPv6:2607:f8b0:4864:20::f2d]) (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 2154E88AA9 for ; Fri, 16 Aug 2024 23:49:35 +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-qv1-xf2d.google.com with SMTP id 6a1803df08f44-6bf6ea1d34aso13365886d6.1 for ; Fri, 16 Aug 2024 14:49:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723844972; x=1724449772; 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=DWhnxfRKVWzUB1Z472NG1v9RYr5P9d2C1rPDe+ruOic=; b=LG++wCWyjfW8grtm63nWmCTtWGVsJO2Nzk3uM48m5NhqqMXqhL9V5aPrufwYADh5jr i7miW9JU3cBkK9RmlWvy5XcTlYdE3r96w6B1Z8/+3Ti6QVVrAmgJ3YM6T+2QM2vFFEiQ gdNII+lEos9oIb3NqdUrAzaKH5H7QwNTMb2FyF2DWvrD7gPPtKEwyB71P2lzqrHIVefy qfKOM6+bQ+G5NStXicLDobnQP+G/oUI42ZuxZvoVUc2hspx2dlFVc3Sr4ZfR/jMCciaw YrDc92xcSCF3CxStLbpxgroB7sBEd0vDgv0j3xQC59FcdQN/mq5T8m11s+Hi/ck3ZDJi lAyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723844972; x=1724449772; 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=DWhnxfRKVWzUB1Z472NG1v9RYr5P9d2C1rPDe+ruOic=; b=fEjq/1j+Z0a8jCKv/RJQtmb8fvoXzLTnESq2oUX3i9b+8R3c29H/5EjTnwe/QJ+0I7 2hPNKO+QNbybYSKh69C2rWlsezYqMwsJkOXdDb1p5hlW6S3v1E6ogRugMNHI6MkK+p/J JXL8+MI51rkga+tWRqPGhgcmzzN52iwnWenc27zdJ1JnyJrsFAgCaJikxw9Y0eU87R+z /z0oVL4x5M1kvL4MzHkyE04rVeYEcLOVSeOuzpAMVeSzg7q7nHEp2VHysp/TGzMEPO36 P5EW+PsKSbhxBpUCjyVQhKXvS9OnYlUQbN0L1LwQ68fQg22cZGiMQ5wQRZDgtGVPkWoQ Wm5g== X-Gm-Message-State: AOJu0Ywm326PYbFJMifpfch7MKteYGgjal7eSDAIiuWjyXLgPCzwVazH pt0cUysmCgwfoMIhRrDHYKbvJIZs0m+Dpn50Gy30YKueB6k3pFeON8dxWXfIWwFVswxnZFkB6xC ifgA= X-Google-Smtp-Source: AGHT+IFu6SmVxSVV8JaKuztkKwMMQiB6a8xN+6ZzSyfvaJw/48zT1uduG7JcOwbfgtAVzEDkRD2LJA== X-Received: by 2002:a05:6214:41a0:b0:6b7:abe7:5665 with SMTP id 6a1803df08f44-6bf7cdd64demr50777616d6.22.1723844972330; Fri, 16 Aug 2024 14:49:32 -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 6a1803df08f44-6bf6ff04ffbsm22044196d6.128.2024.08.16.14.49.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2024 14:49:31 -0700 (PDT) From: Raymond Mao To: u-boot@lists.denx.de Cc: manish.pandey2@arm.com, Raymond Mao , Tom Rini , Stefan Bosch , Mario Six , Andy Shevchenko , Michal Simek , Tuomas Tynkkynen , Simon Glass , Ilias Apalodimas , Jiaxun Yang , Andrejs Cainikovs , Marek Vasut , Sean Anderson , Heinrich Schuchardt , Sumit Garg , Andrew Davis , Rasmus Villemoes , Jesse Taube , Bryan Brattlof , "Leon M. Busch-George" , Igor Opaniuk , Alper Nebi Yasak , Mattijs Korpershoek , AKASHI Takahiro , Alexander Gendin , Jonathan Humphreys , Bin Meng , =?utf-8?q?Vincent_Stehl=C3=A9?= , Anand Moon , Eddie James , Oleksandr Suvorov Subject: [PATCH v6 12/28] mbedtls/external: update MbedTLS PKCS7 test suites Date: Fri, 16 Aug 2024 14:44:01 -0700 Message-Id: <20240816214436.1877263-13-raymond.mao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240816214436.1877263-1-raymond.mao@linaro.org> References: <20240816214436.1877263-1-raymond.mao@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 17 Aug 2024 00:59:01 +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. .../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