From ba933d047df07abb7ea76a3f7c6583d73b6c9ec6 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Tue, 3 Dec 2019 01:29:34 +0300 Subject: [PATCH] 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 --- rpm.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm.spec b/rpm.spec index 2bca62b..f07427d 100644 --- a/rpm.spec +++ b/rpm.spec @@ -1,4 +1,4 @@ -%define commit 5bf4d7c6391be2408e59680999d8a83fb279d64a +%define commit e64c6fa20d47e6599cfd65f0fece87247d210c59 %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: 104.git%{short_commit} +Release: 105.git%{short_commit} License: LGPLv2.1+ Group: System/Configuration/Packaging Url: http://rpm5.org/