Received: by 10.223.148.5 with SMTP id 5csp7817958wrq; Thu, 18 Jan 2018 09:55:02 -0800 (PST) X-Google-Smtp-Source: ACJfBouWghZyc3wqtSfUUKVDkrH8gdRKHsLAnGD93gUQA4MMjp7+nRrKuwMORrjil3WVwJLfK1FY X-Received: by 2002:a17:902:584b:: with SMTP id f11-v6mr176549plj.244.1516298101907; Thu, 18 Jan 2018 09:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516298101; cv=none; d=google.com; s=arc-20160816; b=LH2WzIzeu8TvFTPk2QMXsxPcesCl18vFGz2a9Vy9XSnwityiU2ZHy9HPYTS1JeFujl oY1O/jTvrV3ymjNMuGanVVkOvsbzLksS7zO6IJWGdJJWCreBRlMrnl/x3hZQWmt0cjg2 JsyRh1L5pJElqI6UmxZnFCldsvtNHaAn9tzTfvWq/9rF1F5lcQ79xW3o9B2iicxPsZOJ 8HCVJcDi4clr1pcZ7j5w+DZ41ZuCYTKsnpMcZFyyRLELosVFIo8euNVXRwaEQiX/zZen kUc+VseJLKXNxwFBkuI+UAjgKfUSokvqyoeYqLqiVHEa6dfVpWIYwq/nUpmUJhh29DDG A3Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:cc:to:from:subject:dkim-signature :dkim-filter:arc-authentication-results; bh=9EwTgukgT92XwYs5dBsxvIG/VlHuuFN3Cjb5kRf+XYk=; b=x07sOQmbYgH6qPupIJhCEgkZuXIgXij6qEsFp0Gl35nh70b259xcdb6Ic2qwwxsCwP 1GSJQHeC0aCS8lB4jlTxW60BKjKemNTy5XEMhdFHba4TqYhQrbcAb/PeCRYfjOrkiqK5 zQUx4ILOIRvEUiT0DVba4H3TQQdsT3Oa/fJIQxRv4kbroGmNiE5LZBkK7amdZ1AZud8L RL8/i6e5d0m2iqExdlSShYWPu6NaLF3dnCDt7uGbYwotr443WX36S5m2gPmMU5Msv9ct l1Kenor1deXB8IL1JGhDIO+f12Hxf+XdE/AbjdGHQFAJzMf52MHWRuDMuWZlv8+WoLtE 1Bwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=jPhDjuIJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si6349259pgp.308.2018.01.18.09.54.47; Thu, 18 Jan 2018 09:55:01 -0800 (PST) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=jPhDjuIJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932482AbeARRx7 (ORCPT + 99 others); Thu, 18 Jan 2018 12:53:59 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56590 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbeARRx4 (ORCPT ); Thu, 18 Jan 2018 12:53:56 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180118175354euoutp016e15f9629b58a4fa5cf39c483dac1d61~K_QdiAFDC2584725847euoutp010; Thu, 18 Jan 2018 17:53:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180118175354euoutp016e15f9629b58a4fa5cf39c483dac1d61~K_QdiAFDC2584725847euoutp010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1516298034; bh=9EwTgukgT92XwYs5dBsxvIG/VlHuuFN3Cjb5kRf+XYk=; h=Subject:From:To:Cc:Date:In-reply-to:References:From; b=jPhDjuIJgwObU5xX6koBaBEMWREwUb52C1tHZ9bmF0VbKLY0jd9CmzdHv39vmWzQ3 StMdMw4usDuxqpsg5+VyevjxiQuUcAE1b+m355f05xwzSgDsXLfhmhBgSfG5067HGn hdFfh24icrfYR60uXGoS2TLdEvJhb7DfMp9LYqWI= Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180118175353eucas1p2bde1750ea13d5f5d35f8fe38edaf43b7~K_QcBumZ30084000840eucas1p2P; Thu, 18 Jan 2018 17:53:53 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 17.CB.12867.03FD06A5; Thu, 18 Jan 2018 17:53:52 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180118175352eucas1p1452827db400236b0627121ca665df80c~K_QbOy3Qb2559225592eucas1p1N; Thu, 18 Jan 2018 17:53:52 +0000 (GMT) X-AuditID: cbfec7f2-f793b6d000003243-b8-5a60df30bd61 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id FF.71.18832.03FD06A5; Thu, 18 Jan 2018 17:53:52 +0000 (GMT) Received: from [106.120.51.18] by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P2R0085TJ1RJ170@eusync3.samsung.com>; Thu, 18 Jan 2018 17:53:52 +0000 (GMT) Subject: Re: [PATCH] crypto: ux500/hash: Add empty export and import From: Kamil Konieczny To: Herbert Xu Cc: "David S. Miller" , Linus Walleij , Bartlomiej Zolnierkiewicz , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Joakim Bech Message-id: <0ded4dca-e253-5a88-3f23-a7e5764ca2cb@partner.samsung.com> Date: Thu, 18 Jan 2018 18:53:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset="utf-8" Content-language: en-US Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJKsWRmVeSWpSXmKPExsWy7djPc7oG9xOiDE7sMbDYOGM9q8Wc8y0s Ft2vZCw+r3rKYjHlz3Imi/v3fjJZXN41h82B3WPLyptMHtsOqHrcubaHzaNvyypGj8+b5AJY o7hsUlJzMstSi/TtErgy5v5dzlowV6Ti/7vvjA2MTQJdjJwcEgImEvPbW5kgbDGJC/fWs3Ux cnEICSxllFh3rIkVwvnMKNE57wYLTMfmX6uYIRLLGCU+TFoC1fKMUeLAvLfMIFXCAi4Sdz+3 MoLYbALmEo+2nwHbISKgI7Hy5WJWEJsZZOzUzvguRg4OXgE3iccbNEFMFgFViXN3jUAqRAUi JLqe7QKr5hUQlPgx+R7YDZwC7hJbX6yGmqIp8eLLJBYIW1yiufUmlC0vsXnNW7A7JQRus0kc +7iUHeIBF4lj/74xQtjCEq+Ob4GKy0h0dhxkgmjoZ5RYfuMUO4QzhVHi+LSr0ECyljh8/CLU aj6JSdumM4NcLSHAK9HRJtTFyA5kekg8kYUodpTY9HwNOESEBGYxStw86jKBUX4WkndmIXlh FpIXZiF5YQEjyypGkdTS4tz01GJjveLE3OLSvHS95PzcTYzABHP63/FPOxi/nrA6xCjAwajE w7thcUKUEGtiWXFl7iFGCQ5mJRHed95AId6UxMqq1KL8+KLSnNTiQ4zSHCxK4ry2UW2RQgLp iSWp2ampBalFMFkmDk6pBsbsw5P0lkxmev09LrRFzWNCnML083NEMlQ65esCt0r8CZDtWZEY FT9f9LuN/Y1EuZmvLmX7NZ4RW6G85+cfuRhuaZEz1oWqVttZb7H8M+9fp/37uOGpE7ExwXOY LqUU7/ROjpw/6+Spz7MqlrR//f/ugYrPx7ur7Z9+eyNuvuLZ1Tszlvb90BVVYinOSDTUYi4q TgQA2vhM8ywDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsVy+t/xq7oG9xOiDM7c4LLYOGM9q8Wc8y0s Ft2vZCw+r3rKYjHlz3Imi/v3fjJZXN41h82B3WPLyptMHtsOqHrcubaHzaNvyypGj8+b5AJY o7hsUlJzMstSi/TtErgy5v5dzlowV6Ti/7vvjA2MTQJdjJwcEgImEpt/rWKGsMUkLtxbz9bF yMUhJLCEUeLI8iPMEM4zRon5k3+ygVQJC7hI3P3cyghiswmYSzzafoYJxBYR0JFY+XIxK0gD s8BXRom1O3YxQnTPYZRY8OAqSxcjBwevgJvE4w2aICaLgKrEubtGIL2iAhESTTPnsoLYvAKC Ej8m32MBsTkF3CW2vljNClLOLKAuMWVKLkiYWUBcorn1JguELS+xec1b5gmMgrOQdM9C6JiF pGMWko4FjCyrGEVSS4tz03OLDfWKE3OLS/PS9ZLzczcxAqNh27Gfm3cwXtoYfIhRgINRiYd3 w+KEKCHWxLLiytxDjBIczEoivO+8gUK8KYmVValF+fFFpTmpxYcYpTlYlMR5e/esjhQSSE8s Sc1OTS1ILYLJMnFwSjUwal3d9N+5UeBKjY5Y3yOHXd57ZsvPfe8gohNVfSf8p1VZkO9+md+V K7Mt5xR0JbrwNXmFlJzKne12grMxNe3ZrFbPfH3ra9NY2JKTHdznJv3c+ur5lvaVuuFX1524 +d3Z96LtgRX6k4yfePB+ej+Zc/fJxZoPbhwtvFS4eh2XWeDMX95Xjs6Yr8RSnJFoqMVcVJwI AAcKD/+CAgAA X-CMS-MailID: 20180118175352eucas1p1452827db400236b0627121ca665df80c X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180116163219eucas1p132fafc2db8cb9b3af1a1f22d8bf2fdaf X-RootMTR: 20180116163219eucas1p132fafc2db8cb9b3af1a1f22d8bf2fdaf References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please drop this as I will resend it as part of patchset. On 16.01.2018 17:32, Kamil Konieczny wrote: > Crypto framework will require async hash export/import, so add empty > functions to prevent OOPS. > > Signed-off-by: Kamil Konieczny > --- > drivers/crypto/ux500/hash/hash_core.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c > index 9acccad26928..2d0a677bcc76 100644 > --- a/drivers/crypto/ux500/hash/hash_core.c > +++ b/drivers/crypto/ux500/hash/hash_core.c > @@ -1403,6 +1403,16 @@ static int ahash_sha256_digest(struct ahash_request *req) > return ret1 ? ret1 : ret2; > } > > +static int ahash_noimport(struct ahash_request *req, const void *in) > +{ > + return -ENOSYS; > +} > + > +static int ahash_noexport(struct ahash_request *req, void *out) > +{ > + return -ENOSYS; > +} > + > static int hmac_sha1_init(struct ahash_request *req) > { > struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); > @@ -1507,6 +1517,8 @@ static struct hash_algo_template hash_algs[] = { > .update = ahash_update, > .final = ahash_final, > .digest = ahash_sha1_digest, > + .export = ahash_noexport, > + .import = ahash_noimport, > .halg.digestsize = SHA1_DIGEST_SIZE, > .halg.statesize = sizeof(struct hash_ctx), > .halg.base = { > @@ -1529,6 +1541,8 @@ static struct hash_algo_template hash_algs[] = { > .update = ahash_update, > .final = ahash_final, > .digest = ahash_sha256_digest, > + .export = ahash_noexport, > + .import = ahash_noimport, > .halg.digestsize = SHA256_DIGEST_SIZE, > .halg.statesize = sizeof(struct hash_ctx), > .halg.base = { > @@ -1553,6 +1567,8 @@ static struct hash_algo_template hash_algs[] = { > .final = ahash_final, > .digest = hmac_sha1_digest, > .setkey = hmac_sha1_setkey, > + .export = ahash_noexport, > + .import = ahash_noimport, > .halg.digestsize = SHA1_DIGEST_SIZE, > .halg.statesize = sizeof(struct hash_ctx), > .halg.base = { > @@ -1577,6 +1593,8 @@ static struct hash_algo_template hash_algs[] = { > .final = ahash_final, > .digest = hmac_sha256_digest, > .setkey = hmac_sha256_setkey, > + .export = ahash_noexport, > + .import = ahash_noimport, > .halg.digestsize = SHA256_DIGEST_SIZE, > .halg.statesize = sizeof(struct hash_ctx), > .halg.base = { > -- Best regards, Kamil Konieczny Samsung R&D Institute Poland