From patchwork Thu Jul 30 12:11:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rameshwar Prasad Sahu X-Patchwork-Id: 6902141 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DE1A19F39D for ; Thu, 30 Jul 2015 12:13:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA0BF2058A for ; Thu, 30 Jul 2015 12:13:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9324D2056C for ; Thu, 30 Jul 2015 12:13:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752551AbbG3MMq (ORCPT ); Thu, 30 Jul 2015 08:12:46 -0400 Received: from denmail01-v4020.amcc.com ([192.195.68.30]:38169 "EHLO denmail01.amcc.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750977AbbG3MMo (ORCPT ); Thu, 30 Jul 2015 08:12:44 -0400 Received: from apm.com (pnqlwv041.amcc.com [10.48.19.141]) by denmail01.amcc.com (8.13.8/8.13.8) with ESMTP id t6UCCA6h019530; Thu, 30 Jul 2015 06:12:11 -0600 Received: (from rsahu@localhost) by apm.com (8.13.8/8.13.8/Submit) id t6UCCABu003144; Thu, 30 Jul 2015 17:42:10 +0530 From: Rameshwar Prasad Sahu To: vinod.koul@intel.com, dan.j.williams@intel.com, herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, dmaengine@vger.kernel.org, arnd@arndb.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jcm@redhat.com, patches@apm.com, Rameshwar Prasad Sahu Subject: [PATCH v1 4/4] Crypto: tcrypt: Add test case for APM X-Gene SoC CRC32C algo Date: Thu, 30 Jul 2015 17:41:08 +0530 Message-Id: <1438258268-3099-5-git-send-email-rsahu@apm.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1438258268-3099-1-git-send-email-rsahu@apm.com> References: <1438258268-3099-1-git-send-email-rsahu@apm.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds test case for APM X-Gene SoC CRC32C algorithm. Signed-off-by: Rameshwar Prasad Sahu --- crypto/tcrypt.c | 4 ++++ crypto/testmgr.c | 9 +++++++++ 2 files changed, 13 insertions(+) -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe dmaengine" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 9f6f10b..0bbb1e2 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1465,6 +1465,10 @@ static int do_test(const char *alg, u32 type, u32 mask, int m) ret += tcrypt_test("crct10dif"); break; + case 48: + ret += tcrypt_test("xgene(crc32c)"); + break; + case 100: ret += tcrypt_test("hmac(md5)"); break; diff --git a/crypto/testmgr.c b/crypto/testmgr.c index d0a42bd..a65860e 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3748,6 +3748,15 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "xgene(crc32c)", + .test = alg_test_hash, + .suite = { + .hash = { + .vecs = crc32c_tv_template, + .count = CRC32C_TEST_VECTORS + } + } + }, { .alg = "xts(aes)", .test = alg_test_skcipher, .fips_allowed = 1,