Message ID | 1477578591-28924-17-git-send-email-aryabinin@virtuozzo.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Herbert Xu |
Headers | show
Return-Path: <linux-crypto-owner@kernel.org> 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 EBA2060588 for <patchwork-linux-crypto@patchwork.kernel.org>; Thu, 27 Oct 2016 18:06:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEE9B2A227 for <patchwork-linux-crypto@patchwork.kernel.org>; Thu, 27 Oct 2016 18:06:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D39B62A338; Thu, 27 Oct 2016 18:06:18 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 3D07F2A334 for <patchwork-linux-crypto@patchwork.kernel.org>; Thu, 27 Oct 2016 18:06:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935233AbcJ0SGQ (ORCPT <rfc822;patchwork-linux-crypto@patchwork.kernel.org>); Thu, 27 Oct 2016 14:06:16 -0400 Received: from mail-ve1eur01on0103.outbound.protection.outlook.com ([104.47.1.103]:13920 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933792AbcJ0SGP (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Thu, 27 Oct 2016 14:06:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GgkFUO30MhzbgspR8g2QCu2exnpXgQZPn+9Zk8SqREI=; b=NQU17W5nkArmDbCNa2RXjeNCmy4Y+d1ZYToH776tRJ/yIeLEsaibz5KdnaHoI8MOS4ohzsb2ZIpDH+YvyeDI8JG6qrCyx8xg1+pgmwONt19k4r2UGMA4vY2OiQIYtxC6qPIugUo9L7C9Urc9hrpkCHnPadwa45//51/r4LAzQs0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aryabinin@virtuozzo.com; Received: from localhost.sw.ru (195.214.232.10) by HE1PR0802MB2555.eurprd08.prod.outlook.com (10.175.35.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12; Thu, 27 Oct 2016 14:30:01 +0000 From: Andrey Ryabinin <aryabinin@virtuozzo.com> To: Willy Tarreau <w@1wt.eu>, <stable@vger.kernel.org> CC: Herbert Xu <herbert@gondor.apana.org.au>, <linux-crypto@vger.kernel.org>, Andrey Ryabinin <aryabinin@virtuozzo.com> Subject: [PATCH stable 3.10.y 16/18] crypto: shash - Fix has_key setting Date: Thu, 27 Oct 2016 17:29:49 +0300 Message-ID: <1477578591-28924-17-git-send-email-aryabinin@virtuozzo.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1477578591-28924-1-git-send-email-aryabinin@virtuozzo.com> References: <1477578591-28924-1-git-send-email-aryabinin@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [195.214.232.10] X-ClientProxiedBy: AM4PR0501CA0035.eurprd05.prod.outlook.com (10.167.83.173) To HE1PR0802MB2555.eurprd08.prod.outlook.com (10.175.35.148) X-MS-Office365-Filtering-Correlation-Id: 5dede65b-1934-4a90-f5bb-08d3fe75bcbb X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 2:36UH61r+Orgmb2LCb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GRlecPXf06E168kKO/BRDLj+fvPv5BpnXiyOOOLVJN7jl8FEp2qzBvgk/9397diYH5HrcOKGoCTMNZpQ==; 4:shCV9Jbb+4SRtJybmdIoShLrwc7J00GCnrR0qd67ol/+QUF30ak00Iua/qffUaBJltFtmbFksG1m0CgA+33zKlPqNxQC6XfOwu5HkOsfPvgl5D9SQOK7JBRN2rrzpO6cdE0XQqUsVCBl0VYsjcp9dmKQN1sW3FNCyTeX/iXvYbfC2Gdatzt18Lw1wXQIEwxR4wF/uMx9IRDbnm61E5IWUF+4NFL3l3O0qc1/3f9KwOX/GAwYvAwDlvsEphS7aVBbTI3MI3Un1e51Y7u+mkDcdNV/bgjDwJ3WYGjL+GCNlsOzGbxn7qMICysFT5OQ+aGwGBM6+orICbQTmB20NOr94Av4boW+G9zzrtHm+1AiUpRRNmg0uxZWRddRFORVTWtZgHeQMWW/5MytOeQ6j7OhhaQyX8kMmWTMObOWTFm+rUUhwVljO6WOwYO3YWuZSfwgMtc+nCsgRlivX+e+IVABwVBmkixomPCOnPESImN5MTA= X-Microsoft-Antispam-PRVS: <HE1PR0802MB25550EDFC44E699CC3D4A887B0AA0@HE1PR0802MB2555.eurprd08.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6043046)(6042046); SRVR:HE1PR0802MB2555; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0802MB2555; X-Forefront-PRVS: 0108A997B2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(2906002)(81166006)(53416004)(76506005)(8676002)(81156014)(42186005)(305945005)(7846002)(76176999)(48376002)(19580395003)(50986999)(7736002)(19580405001)(2950100002)(105586002)(86362001)(229853001)(586003)(6666003)(6116002)(3846002)(4001430100002)(33646002)(50466002)(36756003)(4326007)(69596002)(189998001)(77096005)(47776003)(5001770100001)(66066001)(107886002)(92566002)(5660300001)(50226002)(5003940100001)(101416001)(68736007)(106356001)(97736004)(781001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0802MB2555; H:localhost.sw.ru; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0802MB2555; 23:HyuM22vrcU7BZZWKuk4lmal75fUJ7RMVMaqQulc?= =?us-ascii?Q?26VhvcgEVIrH5xzEy3yZ7bVv5vDN6/m9RDiV8oPGikjI3UaptbeRMwfOxwOe?= =?us-ascii?Q?WCjGgGi3BE+XTnduxdajBzr3kp5gfS1i4a7TJtZ0xkicZMxudytCVGAqLM2X?= =?us-ascii?Q?LKHoNxs5zZxTj7Ql7XHXG54okNt/1+mod2SJRIH2rO2zI762d6UwnmV1WrX9?= =?us-ascii?Q?5i3R/AUFwlqTcdogG+WeKRZELvzfZujFRq16uDBWhKohpwWgPSlFGwVarwNQ?= =?us-ascii?Q?Oc0BMGXbX3OHeXwp/cxzbQW3YBDGiSYcxPy5SbzNwm0r6hLUrrcBpHpmwuBF?= =?us-ascii?Q?TkEB+hl7KBv0woceae5f1mTQ2siMgjHJ8UAUNodlejVuOADhPF3Bm3Cnw0A5?= =?us-ascii?Q?KUv1en79xvrRDIK6rGVUsv1ywickVwtpelQlyccBw3aGcQ3AwiwpS4Z555sp?= =?us-ascii?Q?0oT9k4cCPhoJRIbZ2vlTKEArlwg3Q2vSL8PKUWGtkGm4SargmDqgRV4BVZmo?= =?us-ascii?Q?AcgC/kxmKjxYDt+XxeZFonJD+4U7Nb2S5+AGfeLcEKGIa9FTQ2qLkVheJ9ey?= =?us-ascii?Q?c/JBpc1/70oKnto8ocGFOAHUdmLgGOSRs9nLHKcKmOaV99ponSxT9iwbi3bX?= =?us-ascii?Q?dOAIoapSdW/yUYRmd/5+/S922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9Jae9jp44N42mlechySKJdv2S6O2Ik14xIdPvuq1N5YlWlQ==; 5:TOF/c0qOJzG0Vh16yX6RZ4mxjfT6cYo90znoXWsY7bCk1+4hbL5PAE/Q01jwu3yJRAvc87z3yVB4O9ET+T/eRjM5GgyhQXqZ6GEM6ktxw/mkDfMGrB7ITUwgztc5/01JLH6QPuTiWrWDYGSmav+aFw==; 24:6az90FJwReRpPFvY27/HljLLugFsWDfPCtxeFRLn5/gr4PNfeCEIom4KkWrIdKOeCZYFTEVu6zkfjgC0Y4y5zlLge/SI8izW9F7Qo6+gRak= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0802MB2555; 7:+QhUEvx3sDfxVCvYYCNbKhEzZm4vggIl/4ZMMiXUxcXN7sfdLMjsQmmyY/oZfu8fRrhJbbY4UKMYa5aJMIDhTVyVG0K7jVS4p8UYwNIsUoF6AI565mEjkqMYeu0FJCJujvoiB1kq7n11ABhsHAPYkKIYcxgoNi/V0rn7BoVVqwncqHJFBMzo7G+0pxUE0n6u9vaxZCG8NFFZs/Pgwsgwf343Fg0/JFOw1jD76wW//y4QC0THlc+xIuk1zL/r0lrW7ayeAtJ9DvYGH1ebdNtsz0NCxvPPjPxzCcXwrLiDBnj+40tGAizlzDaXWQavOPCScY4zlIMlNcy7JOZBlhDmHI0GR7oweZV8QPh1Kmv0aPY=; 20:x1ZqhkgEaxOZOF+m7Qvaa0oRRzuq4GHoK9qaxONjQOLXmniVmZQqdN5apxQ+3kJxZdO0U/z6VEanr7n+ojuY5o8Y5hBKLY3mV7/hwY78tVLg1w6UR6wMYaphg3GrAGyFQqJwUHr5/B7B2EuwprQokuRJqYwgYElqc/jokKhXeMI= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2016 14:30:01.4890 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2555 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/crypto/shash.c b/crypto/shash.c index 8e4256a..ac4d763 100644 --- a/crypto/shash.c +++ b/crypto/shash.c @@ -353,11 +353,10 @@ int crypto_init_shash_ops_async(struct crypto_tfm *tfm) crt->final = shash_async_final; crt->finup = shash_async_finup; crt->digest = shash_async_digest; + crt->setkey = shash_async_setkey; + + crt->has_setkey = alg->setkey != shash_no_setkey; - if (alg->setkey) { - crt->setkey = shash_async_setkey; - crt->has_setkey = true; - } if (alg->export) crt->export = shash_async_export; if (alg->import)