Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1049005pxx; Tue, 27 Oct 2020 07:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS2agG3FtLLe9PO3Wocm8U269DXo9pEZvDHH3xyv6myK2i9eEfzfwgGyPjKwWg7RGAYxZV X-Received: by 2002:aa7:cac2:: with SMTP id l2mr2475460edt.141.1603807755285; Tue, 27 Oct 2020 07:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603807755; cv=none; d=google.com; s=arc-20160816; b=uYxXpRJNYLXlZV1ttgs/TiFjYTJVq+bvwMTliu7LOEay/qDUAHBHwHzGkwGXmJ1usK ciRuV20cRSOjHjnN7H7LLzVZmFv9ICBJPQKjv/WvJ03LgZIOSnIm1Hwzv4X55CW5rTcF f5zuTyr6iO9l0baKj4+3QTkNbFWEI8ycyRoMKu/xfGd7yKlnXp7E4ApXyqyRGxhkMK1O KM5HSlbrM/huoXWjKETw3yhYc5txfavfO290t/aaZvwkXt0w8fMjkFZMaUyhnW5/HYPD ZMN3y4jJBBiLEE3njYJyxUlU73oBGPNINVVgMZBl+/b9CDfo3Jk4DkhLIV8GA0XGpZlL 4AgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jjdl2dhuJDpqYsWLtlxuvUmg+zpTbJsyzx07rWA+3Bc=; b=rPSapAQJpp+Cd7/kc0fbM92RLxsOGSDmAnYFRZThDakFISMCphqTTZYQf8nGSx8p4g Y4gsGJMl+xYG0E9iNU/T4qfbAeUduGYQm37cEAJ0QzsbJPPLrE7gM+cw7OriaJXdY5yj 3JBp9PkRkkQhvvmZ/HRMjvdzO91AONA2zwNIDn78stc64QeHPxkseq9HEAVgaCatprYL qrREnNQoKPxAXgUA1Z7MIQkhSSq+66n61OgeiZvrUETwKSgPbc5q8vXFZadu1HbknvMX swBe5iqqmS8MH2Bp5+TuJKa9IhSQObD+9NNKRU/7LpuGi5a2a+2Ebi77WU0Z8uIGdF+Q 2q6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=YGak6vUj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si944086edl.534.2020.10.27.07.08.41; Tue, 27 Oct 2020 07:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@benyossef-com.20150623.gappssmtp.com header.s=20150623 header.b=YGak6vUj; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395402AbgJ0GxL (ORCPT + 99 others); Tue, 27 Oct 2020 02:53:11 -0400 Received: from mail-yb1-f196.google.com ([209.85.219.196]:35815 "EHLO mail-yb1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbgJ0GxL (ORCPT ); Tue, 27 Oct 2020 02:53:11 -0400 Received: by mail-yb1-f196.google.com with SMTP id m188so359314ybf.2 for ; Mon, 26 Oct 2020 23:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benyossef-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jjdl2dhuJDpqYsWLtlxuvUmg+zpTbJsyzx07rWA+3Bc=; b=YGak6vUjSqyon7HWw3AXm4yi4I+zfP8DvCyJBwe75PHcDCOAkJCopDi7Qkzicv3++3 bhZeOruwmqj633uMGT9Fkoz80nrswtvPrNDAvux0JVFO2jnRcAuj5Z7XNbilg3XujWIo batKSd11/ypHVD8GWSGZhQYHR7Wavf75sVSpYOXYnwSdf1vhDR7oFfPjt+P9E3PM+FAx u9Kd4PZgrYM3ahytNjIF1wKkzRKyIGhaFDPGvE3/Wo1ESATJy/GjEyP5wC+HfAF5LgnT ZpNyFFQWCOLyU5NeAZEtULbZ6CPUPhjCp/d8UZc4tQ4YZnfyqgzf10vsX7X8E7qcLFWL CO4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jjdl2dhuJDpqYsWLtlxuvUmg+zpTbJsyzx07rWA+3Bc=; b=ap8oWqtfmP9fIh4OJTXl7Pm8hpx9Trbi1kEMDLCqZ7Dz1O8Uay1S82nrkdRmPbTXZH ET3jHj8uOj4oJQKOLmTUX7RE/pEpBRmIPw2vG1k9CKcXRi09EhBIjCm0Hlm0Eea5yrNj 234vYeQ8uuwca/k6woH2jQa+Y1Gn1Ro5rHfjx6PqjYjpwImN5mZyO9BDcddl6uHXoQjx gESwQIuUN0pAfQ7y9io7sU72ujb6pBBXhOG91kHwVMmepbeCHkm0QWXFUE9CwxEcXjBD h+KMDW+hlDwGzyfnMxiefPts9GtW/WmBXIlgpH/r4ecWZroQT5m8CFYGaNrP2AK96fJA Mdtg== X-Gm-Message-State: AOAM5317NorBuRgHXpsiBNd/HR2sqDg3X3tdgnLWdIMuTzf2O9p9GJcD RsqpNim3kERFBlTTy778ZX8+/Yx0xyIVWmf/a7OXPA== X-Received: by 2002:a25:774f:: with SMTP id s76mr1026683ybc.235.1603781589825; Mon, 26 Oct 2020 23:53:09 -0700 (PDT) MIME-Version: 1.0 References: <20201026130450.6947-1-gilad@benyossef.com> <20201026130450.6947-2-gilad@benyossef.com> <20201026182448.GH858@sol.localdomain> <20201026182628.GI858@sol.localdomain> In-Reply-To: <20201026182628.GI858@sol.localdomain> From: Gilad Ben-Yossef Date: Tue, 27 Oct 2020 08:53:04 +0200 Message-ID: Subject: Re: [PATCH 1/4] crypto: add eboiv as a crypto API template To: Eric Biggers Cc: Herbert Xu , "David S. Miller" , Song Liu , Alasdair Kergon , Mike Snitzer , device-mapper development , Ofir Drang , Linux Crypto Mailing List , Linux kernel mailing list , linux-raid@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Oct 26, 2020 at 8:26 PM Eric Biggers wrote: > > Here's the version of eboiv_create() I recommend (untested): > > static int eboiv_create(struct crypto_template *tmpl, struct rtattr **tb) > { > struct skcipher_instance *inst; > struct eboiv_instance_ctx *ictx; > struct skcipher_alg *alg; > u32 mask; > int err; ... Thank you very much for the review and assistance. I will send out a revised version. Thanks, Gilad --=20 Gilad Ben-Yossef Chief Coffee Drinker values of =CE=B2 will give rise to dom!