Added GOST R 3411-94 and 3411-12 hashing algos

Example of enabling Stribog-256 to calculate file hashes:
%_build_file_digest_algo 99
%_build_source_file_digest_algo 99

98 - GOST R 3411-94 (256 bit)
99 - GOST R 3411-12, Stribog-256
100 - GOST R 3411-12, Stribog-512

To verify hashes use:
rpm -qp --dump ./package.rpm

Known issue:
https://github.com/gost-engine/engine/issues/189
This commit is contained in:
Mikhail Novosyolov 2019-11-28 16:27:45 +03:00
parent 6be2ae3bc3
commit da3f192507

View file

@ -1,4 +1,4 @@
%define commit e2dedc4888e0cc3a8f800085bf3f0bf954fd5f45
%define commit 5bf4d7c6391be2408e59680999d8a83fb279d64a
%define short_commit %(echo %{commit} | head -c 4)
# When updating, change commit hash above to the commit in
# https://abf.io/soft/rpm5 that you want to build from
@ -65,7 +65,7 @@ Summary: The RPM package management system
Name: rpm
Epoch: 1
Version: %{libver}.%{minorver}
Release: 102.git%{short_commit}
Release: 104.git%{short_commit}
License: LGPLv2.1+
Group: System/Configuration/Packaging
Url: http://rpm5.org/
@ -90,6 +90,7 @@ BuildRequires: automake >= 1.8
BuildRequires: elfutils-devel
BuildRequires: sed >= 4.0.3
BuildRequires: beecrypt-devel >= 4.2.1-8
BuildRequires: pkgconfig(libgcrypt)
BuildRequires: ed
BuildRequires: gettext-devel
BuildRequires: byacc
@ -667,6 +668,7 @@ tar -zxf %{SOURCE3} -C cpu-os-macros
--with-path-magic=%{_datadir}/misc/magic.mgc \
--with-beecrypt=external \
--with-usecrypto=beecrypt \
--with-gcrypt=external \
--with-keyutils=external \
--with-neon=external \
--with-acl \