Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp839016imm; Wed, 10 Oct 2018 05:14:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV613WMb14cKJQGGRuFnQnmKrbbkEM+cqvYnjjIem5E1LGDsdHgforldfu1FXhzg5dBN4VMeF X-Received: by 2002:a63:3e06:: with SMTP id l6-v6mr28128610pga.96.1539173691425; Wed, 10 Oct 2018 05:14:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539173691; cv=none; d=google.com; s=arc-20160816; b=TpeG18oSuxYs/shFff9uKVepaXmnHZwLPUi7VfFGhx6qZAGn2x4vYg8CSYOxCyBjmQ 7cas75WkpxMYh1ohic68rWUdMI8dYjlNN5iFEdTuxdXEWVJo5hz/WDLvVp+G+Du46eIc 7seYZd4NA6lnOAhi0jnzv26p+X7pjMujj4T0ICGdeztiyaD0Kr2PQAcXxhISxFxhhSb9 rx7t4/jfOjxSwx/6acwNJHUYvKiwJDcyake2Uhumicgoz1hjJLK378omrlr4BD3tYwBl AZgfCWq1SGr6p5+oBKcdrVZQBBukN634F93nt4HHB7isqqF4Fzzsx54PafFrJGnfIYe7 ilCg== 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:cc:to:from; bh=kNFmtSnpl/7olvxKQA9pFonTBKGJLEgGeSeEh0w3OEQ=; b=LyMP8TWnG9k2lHlktPap0DH1qIW9HyBna51e0KBHy5LZYbP7lKCTG8zMRRBZBxFWW3 whfWDOuEe5B0Z0nqHve5xKiXek6awxRrvmJ4trh8ZdVDBVX2b0+DGyjFNqfDpzTm1qhm fsNc7D8wfCe0z7HxLyy0b4JbKhEXaRZIQ3/aKVYHhFFKR9iD4cyF12Tqfp5O4ZSSeSWC iV9Irndhx0uEA748i1OphY13XDVZajNn+9S92oWF/tM2OQSHBUgPiG6w4FeIo7Ks7swU Zco25SdZ4KKGeQ2rr36qwfaVJgRIg42UZ+tU1MY1A0OzP7d+mYxyRajkyL4juf2Ko6fe OM6g== 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 f2-v6si27640072pln.270.2018.10.10.05.14.35; Wed, 10 Oct 2018 05:14:51 -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 S1726770AbeJJTew (ORCPT + 99 others); Wed, 10 Oct 2018 15:34:52 -0400 Received: from vmicros1.altlinux.org ([194.107.17.57]:42400 "EHLO vmicros1.altlinux.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbeJJTev (ORCPT ); Wed, 10 Oct 2018 15:34:51 -0400 Received: from imap.altlinux.org (imap.altlinux.org [194.107.17.38]) by vmicros1.altlinux.org (Postfix) with ESMTP id 8827372CA57; Wed, 10 Oct 2018 15:12:56 +0300 (MSK) Received: from beacon.altlinux.org (unknown [185.6.174.98]) by imap.altlinux.org (Postfix) with ESMTPSA id 408CF4A4A29; Wed, 10 Oct 2018 15:12:56 +0300 (MSK) From: Vitaly Chikunov To: Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vitaly Chikunov Subject: [PATCH v2 0/2] crypto: streebog - add Streebog hash function Date: Wed, 10 Oct 2018 15:12:50 +0300 Message-Id: <20181010121254.12220-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. Vitaly Chikunov (2): crypto: streebog - add Streebog hash function crypto: streebog - add Streebog test vectors crypto/Kconfig | 12 + crypto/Makefile | 1 + crypto/streebog_generic.c | 1142 +++++++++++++++++++++++++++++++++++++++++++++ crypto/tcrypt.c | 27 ++ crypto/testmgr.c | 12 + crypto/testmgr.h | 71 +++ include/crypto/streebog.h | 34 ++ 7 files changed, 1299 insertions(+) create mode 100644 crypto/streebog_generic.c create mode 100644 include/crypto/streebog.h -- 2.11.0