From patchwork Tue Jun 27 07:27:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 106394 Delivered-To: patch@linaro.org Received: by 10.140.101.48 with SMTP id t45csp907284qge; Tue, 27 Jun 2017 00:29:09 -0700 (PDT) X-Received: by 10.99.137.66 with SMTP id v63mr3882258pgd.182.1498548548960; Tue, 27 Jun 2017 00:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498548548; cv=none; d=google.com; s=arc-20160816; b=S3DGpahq18ukQhMtSxbeF4RLd+MHc9r/kviTroMZJkwG0HqeFgv64rEdvIhnYh5YLV ibgS+/sQw5St47PAqFzBUeS4zQQG7YCKC0qV+sXURpRzz5+FjkvJr/m80uAiooui2Vmc w0uF+/qD3cfGJPyu4FktE08vL61J0I3hOY8nBZICNjG3wbXh4iJT4QpTEzRE5THZWta8 ColIy5A3vs+rg9ijZlU0K9Ziz2N0xWcHvhua9C6WGxZTMAriCpoKhaxd0H722GR91x0D Fz6y9LsOu2fMci5zr+9i6ziPTiDub0toOUDev+QEPy7FYmgHLm4hIECp2On0uck0A03T w6ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2rx7NfoU+vnK34tpLS6hnQUTc7PNDj/46RhJFZKEM6c=; b=UF432EccDfNQ5mIba9fGZHHLgC4zEVn6w8P8QvpVi5NJaBYbywNxQ3SfQ3RrI4Dzrx ZHNRzAKORSsgpSIxwTsef9BPpK6Vp/yPmtHoxSDsyJWmtobgBnMj10ZFG9Mega6dQe9h SLgwZ1MMYJkgHRAli8aHUQvwHpcCrZLD8iF7sONs1UHEoKhkcijgCvnWfrI5yxZH2EAJ AlK20eilXsrT40D96ItoLSeMz9BNrrOtiQKBTHEO8TbjWwa6QJwW1hQEinCot9E1Y/CC CL+qcb1DXERmYjbEhsYRxbKeULBYHSoubN6bMqdoAXAEZSlWg8z4bKIFVfdFe9lrN34l rZdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s62si1439176pgb.247.2017.06.27.00.29.08; Tue, 27 Jun 2017 00:29:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752584AbdF0H2z (ORCPT + 25 others); Tue, 27 Jun 2017 03:28:55 -0400 Received: from foss.arm.com ([217.140.101.70]:52496 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbdF0H21 (ORCPT ); Tue, 27 Jun 2017 03:28:27 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 71FA9344; Tue, 27 Jun 2017 00:28:26 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.148]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7087A3F4FF; Tue, 27 Jun 2017 00:28:24 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Ofir Drang Subject: [PATCH 09/14] staging: ccree: remove custom type tdes_keys_t Date: Tue, 27 Jun 2017 10:27:21 +0300 Message-Id: <1498548449-10803-10-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1498548449-10803-1-git-send-email-gilad@benyossef.com> References: <1498548449-10803-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace references to type tdes_keys_t with struct tdes_keys. _ Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/ssi_cipher.c b/drivers/staging/ccree/ssi_cipher.c index b4fc9a6..eb3e8e6 100644 --- a/drivers/staging/ccree/ssi_cipher.c +++ b/drivers/staging/ccree/ssi_cipher.c @@ -253,11 +253,11 @@ static void ssi_blkcipher_exit(struct crypto_tfm *tfm) } -typedef struct tdes_keys { +struct tdes_keys { u8 key1[DES_KEY_SIZE]; u8 key2[DES_KEY_SIZE]; u8 key3[DES_KEY_SIZE]; -} tdes_keys_t; +}; static const u8 zero_buff[] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, @@ -268,7 +268,7 @@ static const u8 zero_buff[] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, static int ssi_fips_verify_3des_keys(const u8 *key, unsigned int keylen) { #ifdef CCREE_FIPS_SUPPORT - tdes_keys_t *tdes_key = (tdes_keys_t *)key; + struct tdes_keys *tdes_key = (struct tdes_keys *)key; /* verify key1 != key2 and key3 != key2*/ if (unlikely((memcmp((u8 *)tdes_key->key1, (u8 *)tdes_key->key2, sizeof(tdes_key->key1)) == 0) ||