From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754171AbcA0J2u (ORCPT ); Wed, 27 Jan 2016 04:28:50 -0500 Received: from mga14.intel.com ([192.55.52.115]:1438 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754308AbcA0J2V (ORCPT ); Wed, 27 Jan 2016 04:28:21 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,354,1449561600"; d="scan'208";a="735033001" From: Rui Wang To: herbert@gondor.apana.org.au Cc: tim.c.chen@linux.intel.com, rui.y.wang@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] Fix sha1_mb failure and testing import()/export() Date: Wed, 27 Jan 2016 17:08:34 +0800 Message-Id: <1453885718-24599-1-git-send-email-rui.y.wang@intel.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, This patchset resulted from the failure when loading sha1_mb. It is because ahash drivers are now required to implement import() and export(). Also, now it seems beneficial to add a test case in testmgr to test import()/export(), thus: patch01 - patch03 fix the problems while loading sha1_mb. patch04 adds a test case for import() and export(). A hash algo's import()/export() can be tested by simply adding .partial = 1 to its corresponding struct hash_testvec where .np > 1. v2: Leverage template[i].np in the test case as suggested by Tim Chen. Rui Wang (4): crypto x86/sha1_mb: Fix load failure crypto: mcryptd - Fix load failure crypto: algif_hash - wait for crypto_ahash_init() to complete crypto: testmgr - Add a test case for import()/export() arch/x86/crypto/sha-mb/sha1_mb.c | 39 +++++++++++ crypto/algif_hash.c | 4 +- crypto/mcryptd.c | 1 + crypto/testmgr.c | 136 +++++++++++++++++++++++++++++++++++++++ crypto/testmgr.h | 4 +- 5 files changed, 182 insertions(+), 2 deletions(-) -- 1.8.3.1