From: Vitaly Chikunov <vt@altlinux.org>
To: Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>,
Mimi Zohar <zohar@linux.ibm.com>,
Vitaly Chikunov <vt@altlinux.org>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: linux-integrity@vger.kernel.org
Subject: [PATCH v4 0/3] crypto: streebog - add Streebog hash function
Date: Wed, 7 Nov 2018 00:00:00 +0300 [thread overview]
Message-ID: <20181106210008.11241-1-vt@altlinux.org> (raw)
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
--
2.11.0
next reply other threads:[~2018-11-06 21:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 21:00 Vitaly Chikunov [this message]
2018-11-06 21:00 ` [PATCH v4 1/3] crypto: streebog - add Streebog hash function Vitaly Chikunov
2018-11-07 14:53 ` Ard Biesheuvel
2018-11-06 21:00 ` [PATCH v4 2/3] crypto: streebog - register Streebog in hash info for IMA Vitaly Chikunov
2018-11-06 21:00 ` [PATCH v4 3/3] crypto: streebog - add Streebog test vectors Vitaly Chikunov
2018-11-16 6:18 ` [PATCH v4 0/3] crypto: streebog - add Streebog hash function Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181106210008.11241-1-vt@altlinux.org \
--to=vt@altlinux.org \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).