Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp639570imu; Mon, 5 Nov 2018 06:38:55 -0800 (PST) X-Google-Smtp-Source: AJdET5diJS9heIn35tlkU8GKR6prOc4S3AKWrV47wv0M9mlPhFljeoza4inZpUPpeVDLvIrelri7 X-Received: by 2002:a62:5285:: with SMTP id g127-v6mr14266592pfb.128.1541428735782; Mon, 05 Nov 2018 06:38:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541428735; cv=none; d=google.com; s=arc-20160816; b=rZ21xY8VXfL/aKsTE2vuD9Xac83fuV9/QihxFzeQsW21G9+08K4OyWghQVWr0QBPfL dVew6/iLbAHlvPavpB8usnpWl/wc+pBfcM/WRolnz8UGks+x+95DMmo36vTff+YZDEgR xK1yXP6reAaBzNtxp2g3FT0xEM9XCEbKcpA3EK3GvBC6F/j4pvTkPpfiTfGF+uWNjkKP NYkKS+9jcrOQOXcy5HGRYuHgUxUXmO2mzLRdfo0AP+/9zU70fbtuA3Xj/BcUzNcLrOZ7 c7TYTwUq2GOG9oAbisuzZoQC6pLDOOy28fqsUESB72bgIf3Y3x26hvKroO/nl0HHWw/J eZoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date; bh=NA9CjNBXUaPc0KAMbZpBn3uTe91UaMBnACrBs8LqSD8=; b=qqJOwZ11y9OpVUAQZsp46m1Cinz+b3PieIwxZ4BF/YB4QXI4rvy6MtI+G69i850/2R c3af43nLeQxuTeI12uxwE3n+CpOOgL/BW004lP54ekgaI5GuxMhddfviH1sXpfD7NarB 1HWn83sQwnBiNT30fLgBi9mMaABN2zirvt+yoQUvVqkonzGm43Hod7BmB+Bbs7MHbZg5 1+dIboqfpPO1WHVb/yLDgLH9OaxHGuLX0CipVGcZq6vTKzYkPU7eYbJvhh+hSqa+lxMy /8jx+5ubdghQVbkC+eXNUOq9rzsBQwDbHpYxBCGOJlPFoaR1UXVHX0wgDptQ7UhQUXx4 2TFA== 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 p2-v6si8617473pfp.82.2018.11.05.06.38.41; Mon, 05 Nov 2018 06:38:55 -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; 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 S1730002AbeKEX4e (ORCPT + 99 others); Mon, 5 Nov 2018 18:56:34 -0500 Received: from vmicros1.altlinux.org ([194.107.17.57]:49158 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbeKEX4e (ORCPT ); Mon, 5 Nov 2018 18:56:34 -0500 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id B877572CC68; Mon, 5 Nov 2018 17:36:31 +0300 (MSK) Received: from sole.flsd.net (sole.flsd.net [185.75.180.6]) by imap.altlinux.org (Postfix) with ESMTPSA id 43D494A4A29; Mon, 5 Nov 2018 17:36:31 +0300 (MSK) Date: Mon, 5 Nov 2018 17:36:31 +0300 From: Vitaly Chikunov To: Ard Biesheuvel Cc: Herbert Xu , "David S. Miller" , Greg Kroah-Hartman , Thomas Gleixner , Philippe Ombredanne , Kate Stewart , linux-crypto@vger.kernel.org, Linux Kernel Mailing List Subject: Re: [PATCH v3 1/3] crypto: streebog - add Streebog hash function Message-ID: <20181105143630.3m5z2kmbtesaqcgc@sole.flsd.net> Mail-Followup-To: Ard Biesheuvel , Herbert Xu , "David S. Miller" , Greg Kroah-Hartman , Thomas Gleixner , Philippe Ombredanne , Kate Stewart , linux-crypto@vger.kernel.org, Linux Kernel Mailing List References: <20181024032356.3388-1-vt@altlinux.org> <20181024032356.3388-2-vt@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215-106-ac61c7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ard, I will address your suggestions in v4. And below is my comments for a few of them. On Mon, Nov 05, 2018 at 02:22:21PM +0100, Ard Biesheuvel wrote: > > +static const struct streebog_uint512 buffer512 = { { > > + cpu_to_le64(0x200ULL), > > Can we keep the memory representation in native endianness, and only > swab the in/output [where needed]? Yes. This will slightly affect performance on big-endian architectures, but, probably this is not a concern. > Also, did you test this code on a big-endian system? Yes, on s390x on qemu. > > + .cra_name = "sb256", > > Please use the full name 'streebog256' (and 512 below) First, I thought of shortening name like Whirlpool do with wp256, but now I rethought this and agree. Thanks!