Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp71648imu; Thu, 15 Nov 2018 22:19:35 -0800 (PST) X-Google-Smtp-Source: AJdET5eBA8hM825687SylqASlYrulnl1fE1GPLQ6wVEG258UxiyeZXlYwhd2XukkzmAz1gvxbXI1 X-Received: by 2002:a63:a35c:: with SMTP id v28mr8698469pgn.205.1542349175514; Thu, 15 Nov 2018 22:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542349175; cv=none; d=google.com; s=arc-20160816; b=MHlJX1x74+xpSdxyjgn4UWkGhcK0rmD8647oShl4n643pJwPLOE/lwRNX5V7uqrDVp /91zupIJjQcNB9b+cQsdS3cukeiVb8xHNFq3wc43gLV1MCvt47geTMjrHMu2Z4FEFrNr ocvRxOGVIoqwRhMb0TnfhAaj+3hram8sry0UQBXaJusJkKj3O6kUAZpa6eugCJ3zEYsz G1DOyi8t+Pv8WmjjJP3DwKLVLEZoeweT94WhClgHZU499+oGGP0D7Hqvfvn+Go1UNdyU zrp7iPEMEQEfiOilyrpzx+rdWb737JNF9a2fYE55F55dKHwmDctgm7xMQ+awHiD15Hw7 KxCw== 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:message-id:subject:cc :to:from:date; bh=zeBo55HF0IFCZY03LiS7R+Fth+nP+LOjLMTloRUJuIk=; b=wAAhtTrtr737Qoj6gnTSevDOvxFpAE8JEmzK4IG306sYVGgQsnn7XT24H43izcTz2/ t4E1J9IhKXsC3ab5KEySELQFxzp33A6DqeneHFqnkMPxrNUDqR9CxHhjv0X3z4Qndcu6 l2X8nhKS92oE8hxFPjjKwzshnUd+miBpHjLtnQb0SbBSPbd0ix+d1ghNU4P8Cv7v0Xkm V51qm7H1i82jtfJkfD8CuYv2h0AzBKuYxFJK1bPnoP/yczUH24h/vcI9Dw1CkcGKHZa2 gBov+swGAXI+JBz+khVDSwnUqqpiJ4SSTBvLN0162T5vCRW6mm0uus+DtpbwMjqgWDFY 8KpQ== 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 f1-v6si17596377pln.368.2018.11.15.22.19.20; Thu, 15 Nov 2018 22:19:35 -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 S2389290AbeKPQ3k (ORCPT + 99 others); Fri, 16 Nov 2018 11:29:40 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:37612 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727353AbeKPQ3k (ORCPT ); Fri, 16 Nov 2018 11:29:40 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1gNXSd-0004ys-F4; Fri, 16 Nov 2018 14:18:35 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1gNXSd-0001zm-Av; Fri, 16 Nov 2018 14:18:35 +0800 Date: Fri, 16 Nov 2018 14:18:35 +0800 From: Herbert Xu To: Vitaly Chikunov Cc: "David S. Miller" , Mimi Zohar , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org Subject: Re: [PATCH v4 0/3] crypto: streebog - add Streebog hash function Message-ID: <20181116061835.cxrsjiktoawt3nof@gondor.apana.org.au> References: <20181106210008.11241-1-vt@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181106210008.11241-1-vt@altlinux.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 07, 2018 at 12:00:00AM +0300, Vitaly Chikunov wrote: > Add GOST/IETF Streebog hash function (GOST R 34.11-2012, RFC 6986) > generic hash transformation with appropriate testmgr and tcrypt > tests and vectors. > > Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian > cryptographic standard algorithms (called GOST algorithms). > > Intended user is the IMA subsystem, which does not need any particular > patching besides adding the hash names into Hash Info arrays, this is also > done in this patchset. > > References: > https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf > https://tools.ietf.org/html/rfc6986 > > Tested using testmgr and tcrypt on (LE) x86_64, arm, arm64, and (BE) s390x > in qemu. > > Changes from v1: > - Fix of big-endian problem in add512. > - More architectures are tested, including big-endian and 32-bit. > > Changes from v2: > - Register hash in Hash Info for use by IMA. > - Add hmac() tests. > > Changes from v3: > - Remove not needed includes, and register, inline, const, ULL, and > __aligned specifiers. > - Covert define macros into functions. > - Use block size define instead of a number. > - Rename algorithm names sb256, sb512 to streebog256, streebog512. > - Rename bufsize to a more meaningful name (fillsize). > - Prefix all static functions names with streebog_. > > Vitaly Chikunov (3): > crypto: streebog - add Streebog hash function > crypto: streebog - register Streebog in hash info for IMA > crypto: streebog - add Streebog test vectors > > crypto/Kconfig | 12 + > crypto/Makefile | 1 + > crypto/hash_info.c | 4 + > crypto/streebog_generic.c | 1140 ++++++++++++++++++++++++++++++++++++++++ > crypto/tcrypt.c | 37 ++ > crypto/testmgr.c | 24 + > crypto/testmgr.h | 116 ++++ > include/crypto/hash_info.h | 1 + > include/crypto/streebog.h | 34 ++ > include/uapi/linux/hash_info.h | 2 + > 10 files changed, 1371 insertions(+) > create mode 100644 crypto/streebog_generic.c > create mode 100644 include/crypto/streebog.h All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt