From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5573DC433F5 for ; Sun, 9 Jan 2022 17:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yGdI68K2XhZwzq8TmMdSG/rKj7gOZPZLPORVHOJ7q1g=; b=BF3/1NtiSI7hUN XwdZ40VVXGbqp1MUTrZy5XvcybH5dOx6tVqlVIRcWGQ4EEmZv/jpkZnxNoScY1mSnwplD0gbKggHT veJJUY93nNtYHjSBTpOw+1yOKGtr1QEZLzzpSlAexWytPX4TsbEj9sDL9fQe925sVi/fghridM0di Hts44Jkg/VAa7C9GUlwCBnnuqm60N3nB3c7PQ0dmKuF32olBEcZsGQi5AtXAOaRRL/HZTn7O9qtTE 0ovTEKrD6zqe0ZbhtAf1QULMfVMwTOJmnOM12cvFzIXD6X16PMWqKeXpOUsArTqjIv76a+/JEAHJo RfopfST6SNaiII6ThoJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6bbr-0087oK-Fa; Sun, 09 Jan 2022 17:03:59 +0000 Received: from m12-11.163.com ([220.181.12.11]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n6bbn-0087nM-Ah for linux-arm-kernel@lists.infradead.org; Sun, 09 Jan 2022 17:03:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=/3u4u8Sx8RQrVhoBwH sSEkpcdFoYJP3wCDfinFuxldY=; b=iJUj2xn7ijz84WUkFgFVjRlU2wC2Bb4Ynt Jl7jR50ddLMEl/qkkqtcpMMcA6wq8GTFEERS77jDV2dvBHnoRAJy/iDpK9WU+8iL SjdaDwdNNq8vt8CkoXoyPE2J3dxN9agkQRZaXk6iopLzXOR2pUrRL+N+x20hewOO +a9sq3fsU= Received: from ubuntu.localdomain (unknown [115.171.170.5]) by smtp7 (Coremail) with SMTP id C8CowADnDMovFdthAi5jPQ--.10064S2; Mon, 10 Jan 2022 01:02:40 +0800 (CST) From: Peng Luo To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, terrelln@fb.com, linux-crypto@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Peng Luo Subject: [PATCH] crypto: testmgr - fix some wrong vectors of aes-ccm Date: Mon, 10 Jan 2022 01:02:39 +0800 Message-Id: <20220109170239.4322-1-wuhanluop@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: C8CowADnDMovFdthAi5jPQ--.10064S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7ZryrKFyDJFykCr15tw1DKFg_yoW8WrWDpr Z7JFWjyFWDWa4rKF1UJw4UGF47Wr9Ivws7u3W8J3s7GF13Gw1rZFW2kw10qF1DWFykCr45 ArWUAry5uw43trDanT9S1TB71UUUUUDqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07Ul1v-UUUUU= X-Originating-IP: [115.171.170.5] X-CM-SenderInfo: pzxkt0hoxr1qqrwthudrp/1tbiEBCD9F8YI7XEFAAAs2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220109_090355_962054_97D7A72B X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some vectors of aes-ccm are wrong. This patch has been tested with kernel 4.9 and openssl1.1.1k. Signed-off-by: Peng Luo --- crypto/testmgr.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crypto/testmgr.h b/crypto/testmgr.h index a253d66ba1c1..ff171fe53979 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h @@ -19865,8 +19865,8 @@ static const struct aead_testvec aes_ccm_tv_template[] = { "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a" "\x86\xb0\x87\x6b\x62\x33\x8c\x34" "\xce\xab\x57\xcc\x79\x0b\xe0\x6f" - "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51" - "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5", + "\xCF\xE9\xF9\x21\x3C\x1A\xCE\x67" + "\x62\x7B\x36\x3A\xEA\x19\xAC\x58", .clen = 48, .novrfy = 1, }, { @@ -19952,8 +19952,8 @@ static const struct aead_testvec aes_ccm_tv_template[] = { "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37" "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa" "\x64\x19\xc0\x30\xd7\xfc\x14\x6b" - "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f" - "\xa9\xb4\x2d\x68\x03\xa3\x44\xef", + "\x08\x5A\x20\x4A\xB0\x2C\xF9\x49" + "\x10\x1C\x9C\x85\x8C\x12\xE0\x3A", .clen = 48, .novrfy = 1, }, { @@ -19983,7 +19983,7 @@ static const struct aead_testvec aes_ccm_tv_template[] = { "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39" "\x89\xd4\x75\x7a\x63\xb1\xda\x93", .plen = 32, - .ctext = "\x48\x01\x5e\x02\x24\x04\x66\x47" + .ctext = "\x14\x01\x5e\x02\x24\x04\x66\x47" "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd" "\xa5\xa9\x87\x8d\x84\xee\x2e\x77" "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6" -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel