Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp99850ima; Tue, 23 Oct 2018 20:26:39 -0700 (PDT) X-Google-Smtp-Source: AJdET5e428rZ8pBmPNDuFxUbvKSRWI7n9F7vKNxulIMWt8B1bmtdkJ5DROJYUxX0Rk6+rwwPDcBK X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr935952pla.178.1540351599575; Tue, 23 Oct 2018 20:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540351599; cv=none; d=google.com; s=arc-20160816; b=z41SG44NN0/HZN7pZX2aVabrOK4bAMMs/1FmXsAe+4Q/CKYBW09SZ0WX80MqDCVtAl N0sbVrEX+aJNQUmE+j7yNkfF3BZBOAranrhS6ZiFofFoVhkXbm2fxs1ulOn+VkS7JLW5 v0H93cKbFL6EgjXktC3d1H/urP9KEQTSqVIlHCSxvQGNq1n6S44zA9Yiu1of2ppFOsrR Xp0WXbPX47ClVZrtUdMFtOgyiD4FzDoWlrpgqpEW939LdNVk6it76Ba7mbLMRyF+dnoT CUIpipjmXNxI27mnU1GK0H/uXUOCbWXtM5+b1hx+1crt+0P9nQ/TZQ+fhOdoY44Nv8LT t9Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from; bh=MEdYOSyhnHKUyWr/EmDCO7sKy+gzmKeJDJFh5DLxlik=; b=Vxf2xUbip8fLiKEZ2WEkl8pXt/vd+4Tndv1EqA+nNs3XDrMh5qrVLxGwF/dwAWmWWh b//L6BVX1ZUGgfIRS5nJ2WzTdH+Teqm/kmTmVm+38Mq1bBZUUj8CJb6Ffc9y4Xn3dBS4 lBs3/yO1IkbWsf1hb18rJRf/cmvHVmMhr/Fw2FtsrIny3XtO3zDkQk8NG2nnPK1+tWx+ nZz/DpFx2v7FbV9mEA9Ik4OaT9lFyRzjcJM8D/hp4gBiOICr90KEUJFXKOw8lNjc2Z5Q MbCLRsOD+gj0ze28hN88NTlydjQpe/4MTl3vKYaWMXn22GKTJjptsedOkqr1I11t04Z8 hq7w== 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 n1-v6si3322890pld.205.2018.10.23.20.26.24; Tue, 23 Oct 2018 20:26:39 -0700 (PDT) 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 S1726633AbeJXLuv (ORCPT + 99 others); Wed, 24 Oct 2018 07:50:51 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:45258 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbeJXLuv (ORCPT ); Wed, 24 Oct 2018 07:50:51 -0400 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id AD27372CC63; Wed, 24 Oct 2018 06:24:41 +0300 (MSK) Received: from beacon.altlinux.org (unknown [185.6.174.98]) by imap.altlinux.org (Postfix) with ESMTPSA id 5FD944A4A16; Wed, 24 Oct 2018 06:24:41 +0300 (MSK) From: Vitaly Chikunov To: Herbert Xu , "David S. Miller" , Kate Stewart , Thomas Gleixner , Greg Kroah-Hartman , Vitaly Chikunov , Philippe Ombredanne , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] crypto: streebog - add Streebog hash function Date: Wed, 24 Oct 2018 06:23:48 +0300 Message-Id: <20181024032356.3388-1-vt@altlinux.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). References: https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf https://tools.ietf.org/html/rfc6986 Tested using testmgr and tcrypt on x86_64, arm, arm64, and s390x on 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. 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 | 1142 ++++++++++++++++++++++++++++++++++++++++ crypto/tcrypt.c | 35 ++ crypto/testmgr.c | 24 + crypto/testmgr.h | 114 ++++ include/crypto/hash_info.h | 1 + include/crypto/streebog.h | 34 ++ include/uapi/linux/hash_info.h | 2 + 10 files changed, 1369 insertions(+) create mode 100644 crypto/streebog_generic.c create mode 100644 include/crypto/streebog.h -- 2.11.0