Sync from SUSE:SLFO:Main hmaccalc revision ec4a0ee4763ad71e8299b57afd6f919e

This commit is contained in:
Adrian Schröter 2024-05-03 13:35:09 +02:00
commit 24533335b4
7 changed files with 206 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
hmaccalc-0.9.14.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
hmaccalc-0.9.14.tar.gz.sig Normal file

Binary file not shown.

16
hmaccalc-susekey.patch Normal file
View File

@ -0,0 +1,16 @@
Index: src/hmac.c
===================================================================
--- src/hmac.c.orig
+++ src/hmac.c
@@ -555,9 +555,9 @@ main(int argc, char **argv)
"(sha512/sha384/sha256/sha1)\n";
#endif
- /* Default settings: SHA-512, key = "FIPS-FTW-RHT2009". */
+ /* Default settings: SHA-512, key = "FIPS-FTW-SUSE2014". */
configdir = DEFAULT_CONFIG_DIR;
- Kopt = default_key = "FIPS-FTW-RHT2009";
+ Kopt = default_key = "FIPS-FTW-SUSE2014";
kopt = NULL;
copt = NULL;
ret = 0;

24
hmaccalc.changes Normal file
View File

@ -0,0 +1,24 @@
-------------------------------------------------------------------
Wed Aug 14 06:17:57 UTC 2019 - Wolfgang Rosenauer <wr@rosenauer.org>
- hmac signatures were split from NSS core libs for SLE packaging
compatibility but recommended and therefore not installed by
the build process; now a build requirement (boo#1145414)
-------------------------------------------------------------------
Sun Jan 18 18:33:15 UTC 2015 - p.drouand@gmail.com
- Update to version 0.9.14
* No changelog available
-------------------------------------------------------------------
Wed May 7 12:21:21 UTC 2014 - coolo@suse.com
- remove prelink buildrequire - completely unneeded and unnecessarily
increases core ring
-------------------------------------------------------------------
Mon Apr 14 09:16:33 UTC 2014 - meissner@suse.com
- new package, generate certifiable HMACs for FIPS usage.
uses the Mozilla NSS library for cryptography.

59
hmaccalc.keyring Normal file
View File

@ -0,0 +1,59 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.19 (GNU/Linux)
mQENBFDTOi8BCACWO8bdWKB7rAmch1dL4UQAYvSuUN0+sGTj+M/i1GF3pv7Sble6
dUqPeEwKZtNdnDAA8Bp/UYyahe7Jfsa/vWthvuQ1MCgpW2kLIbaVERXpBpqzK2Uh
JZrq/AblpU9/g4YKyA+FeIY9/gOg4OxsRyxT6hXaxIDHy+dbg6P+z649uqPR8evW
TbMOCdt4DcJ4IfuxPG5HqN4Ul4hzuTiEKYourLhAv5eI0F6hqBjmGZ9snogSS1N4
3MN/ASW5UeA5OC4UR2bLGLlarjMb8Htc7THpjecJl4NXMmlSGTGvf6ZZXJv6Pp79
UDQPRpXnmvWFKyBrZcW5F3tVgrg2kaNIUfHzABEBAAG0Ik5hbGluIERhaHlhYmhh
aSA8bmFsaW5AcmVkaGF0LmNvbT6JATgEEwECACIFAlDTOmoCGwMGCwkIBwMCBhUI
AgkKCwQWAgMBAh4BAheAAAoJEAILnbn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ba2wcAuJC0mGfX3iiyyQNUFkgCg
gUare6EIS3sgkJy9Wmy9owa1h2W5AQ0EUNM6LwEIAKqqMWBdq4PEsmJ7teODGKMD
R+tWd12ac/nNi+aEZj4OT6JyqKJUwmXU0J0JZRGcHOFM5scoZBKLPptemsEaFZGN
VviNPjw1/ir6wlH81awJitRDBLqO50QTE7CWZXKxLX8VCYCUIpRjvF69OXozYU3o
AL/m0aDmZv/S/nPHLjiAF37bqwqeLH1hocdCx8BT2jcwR0/ZplFVeG4DbsHYImlr
8bibOhl8wl59i9ixmCO3Koa3qAKw0OnWelUT0rQXQZU0EdAFbNvfx/VUXGvZY2AQ
5jjpE8NyxLgyMVS/HNktCpJ2GcRPbSO+VoVYX2Q0ElY1f5cc6sq2OECIEerJI68A
EQEAAYkBHwQYAQIACQUCUNM6LwIbDAAKCRACC5255U9olzT5B/0SRan7dGN1CJCY
nDBymg89Ci+b3VuwPUO2QHocbaTucdQ5xVwjPCNIVo0ijAD4fWCVcx6g/fi44eso
GXDWy44Z80JOiXjqZcktmgYp04IzdwmuDosti0phF6VxEa6DXnVZ/cdOMoSNA0yU
PVjr1C9xnOcXpRABdKNlYxrGKx6pt6Lmn4LbYBmSWINnB5q+VzG0Rduulzu/OktS
4gpKzTAtT6fWePuzL/MlxzQJj/IZeU0+G9ehkVpTzwh05mTQyl8NHNs1cMHxBMZQ
RlYRhxEUql/46j7F+oQOAERArg07U136KC/ss9KoejTafhJsPNa68wqV3dtz1MZB
zv8uxjdM
=fNX2
-----END PGP PUBLIC KEY BLOCK-----

81
hmaccalc.spec Normal file
View File

@ -0,0 +1,81 @@
#
# spec file for package hmaccalc
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# at least from Red Hat Linux 9 through Fedora 11's development cycle.
%define __spec_install_post \
%{?__debug_package:%{__debug_install_post}} \
%{__arch_install_post} \
%{__os_install_post} \
for length in 1 256 384 512 ; do \
$RPM_BUILD_ROOT/%{_bindir}/sha${length}hmac -S > \\\
$RPM_BUILD_ROOT/%{_libdir}/%{name}/sha${length}hmac.hmac \
done \
%{nil}
Name: hmaccalc
Version: 0.9.14
Release: 0
Summary: Tools for computing and checking HMAC values for files
License: BSD-3-Clause
Group: Productivity/Security
Url: https://fedorahosted.org/hmaccalc/
Source0: https://fedorahosted.org/released/hmaccalc/hmaccalc-%{version}.tar.gz
Source1: https://fedorahosted.org/released/hmaccalc/hmaccalc-%{version}.tar.gz.sig
Source2: %name.keyring
Patch1: hmaccalc-susekey.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libfreebl3-hmac
BuildRequires: libsoftokn3-hmac
BuildRequires: mozilla-nss-devel
BuildRequires: pkg-config
%description
The hmaccalc package contains tools which can calculate HMAC (hash-based
message authentication code) values for files. The names and interfaces are
meant to mimic the sha*sum tools provided by the coreutils package.
%prep
%setup -q
%patch1 -p0
%build
%configure --enable-sum-directory=%{_libdir}/%{name}
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
%check
make check
%files
%defattr(-,root,root,-)
%doc README LICENSE
%{_bindir}/sha1hmac
%{_bindir}/sha256hmac
%{_bindir}/sha384hmac
%{_bindir}/sha512hmac
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/sha1hmac.hmac
%{_libdir}/%{name}/sha256hmac.hmac
%{_libdir}/%{name}/sha384hmac.hmac
%{_libdir}/%{name}/sha512hmac.hmac
%{_mandir}/*/*
%changelog