Switch GOST R 34.11-94 hashsumming to CryptoPro-A S-Box

We found out that hashes calculated by GCRY_MD_GOSTR3411_94 were
different than the ones by other industry-common tools.

GCRY_MD_GOSTR3411_94 in libgcrypt uses another S-Box
than GCRY_MD_GOSTR3411_CP (which is the same GOST R 34.11-94 but with
CryptoPro-A S-Box).
GCRY_MD_GOSTR3411_CP is standartized in RFC4357 and the same S-Box is used by
gostsum, OpenSSL gost-engine and LibreSSL. Switch to GCRY_MD_GOSTR3411_CP.

See https://github.com/gost-engine/engine/issues/189
This commit is contained in:
Mikhail Novosyolov 2019-12-03 01:29:34 +03:00
parent da3f192507
commit ba933d047d

View file

@ -1,4 +1,4 @@
%define commit 5bf4d7c6391be2408e59680999d8a83fb279d64a %define commit e64c6fa20d47e6599cfd65f0fece87247d210c59
%define short_commit %(echo %{commit} | head -c 4) %define short_commit %(echo %{commit} | head -c 4)
# When updating, change commit hash above to the commit in # When updating, change commit hash above to the commit in
# https://abf.io/soft/rpm5 that you want to build from # https://abf.io/soft/rpm5 that you want to build from
@ -65,7 +65,7 @@ Summary: The RPM package management system
Name: rpm Name: rpm
Epoch: 1 Epoch: 1
Version: %{libver}.%{minorver} Version: %{libver}.%{minorver}
Release: 104.git%{short_commit} Release: 105.git%{short_commit}
License: LGPLv2.1+ License: LGPLv2.1+
Group: System/Configuration/Packaging Group: System/Configuration/Packaging
Url: http://rpm5.org/ Url: http://rpm5.org/