Received: by 10.223.148.5 with SMTP id 5csp7818872wrq; Thu, 18 Jan 2018 09:55:54 -0800 (PST) X-Google-Smtp-Source: ACJfBosdvFnISfpFACvkvyEsaHfo++6MlynAte9vN0Uh8MyT3r78FFS7qNgXvK+FmMVnkCmASxQ2 X-Received: by 10.101.96.207 with SMTP id r15mr7234303pgv.139.1516298154836; Thu, 18 Jan 2018 09:55:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516298154; cv=none; d=google.com; s=arc-20160816; b=hYUmK3npBCp+YousOd5wkcfR0S6Pnd3Nlt5aEjhg2w6q+RH5SWZD+bSt87NKJGSAEj v3FhAoiFK8VbDhYKmgnNerrLu6IfJ1mZ+e3NmT+nSz62YQTCQee8bzHSWczF//MtIzES BN+7NmU/n7cb98na/OlxzLCc8VDJPh9qq9+vroJeTW5By1wcMu8PY2zK7YuQHRa0OfXm uU+XKQKjPSD/APOfnCZtgwp/GDoA7X2ritHSJfOpdcgCKldeJiN6T7uyNyJEAC5BbHyN qPOdqL0+xwjP/cndj6+ynJByu1ayAWZHEYv3+o2iqdHdko4S3EA3BC/fpoASCtdPeHKn pNVg== 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=hCF6vgyy1XRFikUA3vb3FsgL+Zk6SmyoRLRBY3ICjdw=; b=PhChPMH3oyU6LbI7cs39iLyeDCK3E5I6Uzro4++z1CSF5en1lcrGiE5HuLYbIpSbGW KtDBCpwBPLOLdbB5gANSmIjrgJObBTK87mKD1tdoMfrDsL8PGwo074RDFl6E8Uxe6LLr YX/6xmUW8MFuzsfsOsx+gJR+2XSW0hyiOwiSz6KqQ7UmY3P6yRddXhMoq6kOlCXubJP7 RE6ktn326KCWNn7xR/wK4/Wl2XWvlCMe3/avZh41B7AEFA8ukRE0ZT/jz3hoXAFd3EA9 tEmqTIe4bD5YLkPZ4Cg85XhuWbUAuwluhOVkV8pfPgTp+BKQVtDf+GNH3ZwaCFjblorW FMcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=OC5VMsMq; 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 19si7384387pfa.273.2018.01.18.09.55.40; Thu, 18 Jan 2018 09:55:54 -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=OC5VMsMq; 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 S932348AbeARRxu (ORCPT + 99 others); Thu, 18 Jan 2018 12:53:50 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56572 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932103AbeARRxr (ORCPT ); Thu, 18 Jan 2018 12:53:47 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180118175344euoutp0158a359b00852490a4f777dd15fc1a4e3~K_QUbVubM2584725847euoutp01z; Thu, 18 Jan 2018 17:53:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180118175344euoutp0158a359b00852490a4f777dd15fc1a4e3~K_QUbVubM2584725847euoutp01z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1516298024; bh=hCF6vgyy1XRFikUA3vb3FsgL+Zk6SmyoRLRBY3ICjdw=; h=Subject:From:To:Cc:Date:In-reply-to:References:From; b=OC5VMsMqY+NKEnqNhr/q8qxHLNEY+KpRHdLkfq8FOkUUcSrYZl/I8bTGVUe/0BYzC 1HLrYfuTISDs/0feqIR9Vrk6q8O7kjgwuHuOMtPKHANtaLbHnTU8qRRtYLc/scYm80 xt9KsDIzjLd5HF77I6imC1s9oZnkTuEdbrpTGMnw= Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180118175343eucas1p2872bca9ec47b4c54d37a76ed5d7e58ec~K_QS74g2M0227602276eucas1p2h; Thu, 18 Jan 2018 17:53:43 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 26.CB.12867.62FD06A5; Thu, 18 Jan 2018 17:53:43 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180118175342eucas1p2821faa1cdfef2a0285843a28f09551f2~K_QSEhA1p0084000840eucas1p2_; Thu, 18 Jan 2018 17:53:42 +0000 (GMT) X-AuditID: cbfec7f2-f793b6d000003243-aa-5a60df267270 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 24.20.20118.62FD06A5; Thu, 18 Jan 2018 17:53:42 +0000 (GMT) Received: from [106.120.51.18] by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P2R00C8PJ1HOD20@eusync4.samsung.com>; Thu, 18 Jan 2018 17:53:42 +0000 (GMT) Subject: Re: [PATCH] crypto: n2_core: Add empty hash export and import From: Kamil Konieczny To: Herbert Xu Cc: "David S. Miller" , Bartlomiej Zolnierkiewicz , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Message-id: <99689cdf-781f-9e24-7fcd-e810e30c57f2@partner.samsung.com> Date: Thu, 18 Jan 2018 18:53:41 +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+NgFupjleLIzCtJLcpLzFFi42LZduzneV31+wlRBk9nMllsnLGe1WLO+RYW i+5XMhb37/1ksri8aw6bA6vHlpU3mTy2HVD16NuyitHj8ya5AJYoLpuU1JzMstQifbsErowr MwoK3nFX/O07zdLA+ISzi5GTQ0LAROL21iOsELaYxIV769m6GLk4hASWMkqsn/GUHcL5zCgx fVYDC0zHpAd/WSESyxglDr+cxwzhPGOUOH5+KVALB4ewgJvE7Z1SIA1sAuYSj7afYQKxRQR0 JFa+XAzWzCywkFHiR/95dpAEL1D9qU87GEFsFgFVia3XroNtExWIkOh6tosVokZQ4sfke2Bx TgF3id8NX8GGMgtoSrz4MokFwhaXaG69CWXLS2xe8xbsOAmBHWxAl25hhnjBRWLFCoiLJASE JV4d38IOYctIXJ7czQLR0M8osfzGKXYIZwrQa9OuQnVYSxw+fpEVYgWfxKRt05lBXpYQ4JXo aBOCKPGQmLngPyOE7Shx7FEjEySIZgHD6+Rs9gmM8rOQfDQLyRezkHwxC8kXCxhZVjGKpJYW 56anFhvrFSfmFpfmpesl5+duYgSmktP/jgOD7+sJq0OMAhyMSjy8GxYnRAmxJpYVV+YeYpTg YFYS4X3nDRTiTUmsrEotyo8vKs1JLT7EKM3BoiTOaxvVFikkkJ5YkpqdmlqQWgSTZeLglGpg NCuROrRy+RMBhbmPNWR8eXUef/hV2Hv/1Jl6Zqf2knzN+257dkxf+OqTYgbHlRWdfhV75PZY 6FhslJyZ9PLEnFrd4OTcyYaV3m87nxcd9nA23ZV6Njz46UzZzGBeGcm23l172s8k93i4rz81 yZtFyiw1vIl3bR/r/9V//j7JO7dT8CX3/dpJSizFGYmGWsxFxYkAkxljDyEDAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsVy+t/xa7pq9xOiDLb9FbHYOGM9q8Wc8y0s Ft2vZCzu3/vJZHF51xw2B1aPLStvMnlsO6Dq0bdlFaPH501yASxRXDYpqTmZZalF+nYJXBlX ZhQUvOOu+Nt3mqWB8QlnFyMnh4SAicSkB39ZIWwxiQv31rN1MXJxCAksYZT4O/UdK4TzjFHi /5b3TF2MHBzCAm4St3dKgTSwCZhLPNp+hgnEFhHQkVj5cjFYPbPAQkaJSYuPQTXPYZT4+ugl 2ApeoOZTn3YwgtgsAqoSW69dZwGxRQUiJJpmzoWqEZT4MfkeWJxTwF3id8NXsMXMAuoSU6bk goSZBcQlmltvskDY8hKb17xlnsAoOAtJ9yyEjllIOmYh6VjAyLKKUSS1tDg3PbfYSK84Mbe4 NC9dLzk/dxMjMNy3Hfu5BejSd8GHGAU4GJV4eDcsTogSYk0sK67MPcQowcGsJML7zhsoxJuS WFmVWpQfX1Sak1p8iFGag0VJnLd3z+pIIYH0xJLU7NTUgtQimCwTB6dUA+OEpfv22/AtmpvX 9MIs0nfZzz8vHX6HvONcEM4x8dCFh/H2q/9MYXn36fLxr9PbzQViRZcs3C9/k3PTlH6Nx7Z6 yS3rOfonN/x+VpgTmRBufOiq7+XjZZ53L4dPKlc7sfREmUpCVHsbby1TRlMbc0z8z+vnX/tM L1d8oMwcvaBg7fWkuw1fD4QosRRnJBpqMRcVJwIATVH7i3MCAAA= X-CMS-MailID: 20180118175342eucas1p2821faa1cdfef2a0285843a28f09551f2 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180116161844eucas1p27634e8860ca620b45224fa9efe491e2c X-RootMTR: 20180116161844eucas1p27634e8860ca620b45224fa9efe491e2c 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:18, 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/n2_core.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/drivers/crypto/n2_core.c b/drivers/crypto/n2_core.c > index 662e709812cc..80e9c842aad4 100644 > --- a/drivers/crypto/n2_core.c > +++ b/drivers/crypto/n2_core.c > @@ -359,6 +359,16 @@ static int n2_hash_async_finup(struct ahash_request *req) > return crypto_ahash_finup(&rctx->fallback_req); > } > > +static int n2_hash_async_noimport(struct ahash_request *req, const void *in) > +{ > + return -ENOSYS; > +} > + > +static int n2_hash_async_noexport(struct ahash_request *req, void *out) > +{ > + return -ENOSYS; > +} > + > static int n2_hash_cra_init(struct crypto_tfm *tfm) > { > const char *fallback_driver_name = crypto_tfm_alg_name(tfm); > @@ -1467,6 +1477,8 @@ static int __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) > ahash->final = n2_hash_async_final; > ahash->finup = n2_hash_async_finup; > ahash->digest = n2_hash_async_digest; > + ahash->export = n2_hash_async_noexport; > + ahash->import = n2_hash_async_noimport; > > halg = &ahash->halg; > halg->digestsize = tmpl->digest_size; > -- Best regards, Kamil Konieczny Samsung R&D Institute Poland