From patchwork Mon May 21 05:50:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10413983 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A0F9D6032B for ; Mon, 21 May 2018 05:52:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9138A28786 for ; Mon, 21 May 2018 05:52:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8621B28789; Mon, 21 May 2018 05:52:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 262D128786 for ; Mon, 21 May 2018 05:52:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751020AbeEUFwW (ORCPT ); Mon, 21 May 2018 01:52:22 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34352 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750909AbeEUFwS (ORCPT ); Mon, 21 May 2018 01:52:18 -0400 Received: by mail-pl0-f66.google.com with SMTP id ay10-v6so8147776plb.1 for ; Sun, 20 May 2018 22:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7wnDXVYpwGVsTV2OyuH+JvzrTLM3Go/QhFYT9U6e/6c=; b=lzVBjfMK3Hbc18dlpCdXOG6SUtDif3emQ/iH8XWI6yYUmlI3NYti3UhhUpvwH0uYJB AVNb2pOczoYUpRMXH84TWlBUTup3NDAZtIGIQeWuOeKZqAJIPsG3uxVbV3KTS+Lu5Hyb rAdV6FmsHyaQMqA8cpptY7K2fzB/ydoGC563fY0vIF+/2OdgsNlctzNIfYV0yLvO7BZu x0fL0jrBlYDcghkYTNr6TLu8HWEg4LJfpxxBBcVTjlE6tbYHu2kcusF+eHPl8lqYY7yq pe2dNyTaip8KqmUg5+BTT/sfM4e2QMXYIMNEi9ru1pBqOUOrsaoElTjTQmxiMF3c6jwI LN7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7wnDXVYpwGVsTV2OyuH+JvzrTLM3Go/QhFYT9U6e/6c=; b=ixwW4zK01gRN84Bm17+5fRkKDtuvfEizPmqWRGnkOktyYCWo0R9Mc3A/0PQKuYajy8 7U+ePD6o6ZFGbBfKNPAjjT5sRCx5FDvkxDIhT8rdTA6BxHwqaR5c41FuEfiKdQ4+AqvN naaBnEeIi8dtnNZojPyibDb1r7ky88E3KMaIcNCWxCsHZ+ezBswtm9GDERsSQJkcFLLG J3Z+isdTtgaquf2SzwOP5Mitjz2L3sjcWY9rpwRNyti4rAJPFZz46Kql5MqfzLPYBIr/ S5iBN4Z8XYXuw9FzY2eV9cWl9/txPd7TyJ/P275ENQzCVs2faBxuujz2fWw5fHZxhTna hkDQ== X-Gm-Message-State: ALKqPwfXqgDptJR3+iKU0UfEjRi6Z3xbPqy76LY/acInuVs2eolqpKdJ orYY2f7XYYtLc0SjMqc7xxoDaPAv X-Google-Smtp-Source: AB8JxZoMBr3qeU2jqhJYKdNP1F+WLDC92NSj7nSBsQ2UMXhSp4+AnYbje8dsFdpU6VE8d6e6zLcByA== X-Received: by 2002:a17:902:2924:: with SMTP id g33-v6mr19276273plb.26.1526881937695; Sun, 20 May 2018 22:52:17 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id n19-v6sm5859436pgv.89.2018.05.20.22.52.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 May 2018 22:52:17 -0700 (PDT) From: Eric Biggers To: linux-crypto@vger.kernel.org Cc: Herbert Xu , Eric Biggers Subject: [PATCH 4/5] crypto: testmgr - add extra kw(aes) encryption test vector Date: Sun, 20 May 2018 22:50:28 -0700 Message-Id: <20180521055029.16657-5-ebiggers3@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521055029.16657-1-ebiggers3@gmail.com> References: <20180521055029.16657-1-ebiggers3@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Biggers One "kw(aes)" decryption test vector doesn't exactly match an encryption test vector with input and result swapped. In preparation for removing the decryption test vectors, add this test vector to the encryption test vectors, so we don't lose any test coverage. Signed-off-by: Eric Biggers --- crypto/testmgr.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 745a0ed0a73a..75ddbf790a99 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h @@ -33695,6 +33695,19 @@ static const struct cipher_testvec aes_kw_enc_tv_template[] = { "\xf5\x6f\xab\xea\x25\x48\xf5\xfb", .rlen = 16, .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d", + }, { + .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b" + "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71" + "\x03\x86\xf9\x32\x78\x6e\xf7\x96" + "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f", + .klen = 32, + .input = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa" + "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa", + .ilen = 16, + .result = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15" + "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43", + .rlen = 16, + .iv_out = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1", }, };