linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] crypto: streebog - add Streebog hash function
@ 2018-10-24  3:23 Vitaly Chikunov
  2018-10-24  3:23 ` [PATCH v3 1/3] " Vitaly Chikunov
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Vitaly Chikunov @ 2018-10-24  3:23 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Kate Stewart, Thomas Gleixner,
	Greg Kroah-Hartman, Vitaly Chikunov, Philippe Ombredanne,
	linux-crypto, linux-kernel

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-11-05 18:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-24  3:23 [PATCH v3 0/3] crypto: streebog - add Streebog hash function Vitaly Chikunov
2018-10-24  3:23 ` [PATCH v3 1/3] " Vitaly Chikunov
2018-11-05 13:22   ` Ard Biesheuvel
2018-11-05 14:36     ` Vitaly Chikunov
2018-11-05 18:23     ` Vitaly Chikunov
2018-11-05 18:58       ` Ard Biesheuvel
2018-10-24  3:23 ` [PATCH v3 2/3] crypto: streebog - register Streebog in hash info for IMA Vitaly Chikunov
2018-11-05 13:23   ` Ard Biesheuvel
2018-10-24  3:23 ` [PATCH v3 3/3] crypto: streebog - add Streebog test vectors Vitaly Chikunov
2018-11-05 13:24   ` Ard Biesheuvel

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).