commit d200bee55a66f1540ca17514b4543d2c5292c56143bfd8bd4fe34f1b73669be8 Author: Marcus Meissner Date: Mon Apr 14 09:19:02 2014 +0000 - new package, generate HMACs for FIPS usage. OBS-URL: https://build.opensuse.org/package/show/security/hmaccalc?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hmaccalc-0.9.13.tar.gz b/hmaccalc-0.9.13.tar.gz new file mode 100644 index 0000000..f10a978 --- /dev/null +++ b/hmaccalc-0.9.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a00b507555e45f58c1659d28f4d27e63373735a30cfe70e2c939f679cd266cc +size 106979 diff --git a/hmaccalc-0.9.13.tar.gz.sig b/hmaccalc-0.9.13.tar.gz.sig new file mode 100644 index 0000000..fdbc7cc Binary files /dev/null and b/hmaccalc-0.9.13.tar.gz.sig differ diff --git a/hmaccalc.changes b/hmaccalc.changes new file mode 100644 index 0000000..96b7687 --- /dev/null +++ b/hmaccalc.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Apr 14 09:16:33 UTC 2014 - meissner@suse.com + +- new package, generate HMACs for FIPS usage. + diff --git a/hmaccalc.keyring b/hmaccalc.keyring new file mode 100644 index 0000000..20fc90b --- /dev/null +++ b/hmaccalc.keyring @@ -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 +AgkKCwQWAgMBAh4BAheAAAoJEAILnbnlT2iXVU4H/0KXTZi29NjB1VUwR0QcIW26 +hrZRbGKblyko97zjNKA1C02bkRIsuIH+kXClXd5VgSKFg3Gh9mO5OLqCepVN1J0o +JoPU2cYYzD/X1mx/gz4vpy20ERHw58IY8bqOuHvNu4gakwYMCvg+M6V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emsEaFZGN +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----- diff --git a/hmaccalc.spec b/hmaccalc.spec new file mode 100644 index 0000000..198c2d5 --- /dev/null +++ b/hmaccalc.spec @@ -0,0 +1,82 @@ +# +# spec file for package hmaccalc +# +# Copyright (c) 2014 SUSE LINUX Products 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 http://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.13 +Release: 0 +Summary: Tools for computing and checking HMAC values for files +License: BSD +Group: System Environment/Base +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%ifarch %{ix86} x86_64 ppc ppc64 s390 s390x +BuildRequires: nss-devel +BuildRequires: prelink +%else +BuildRequires: nss-devel +%endif + +%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 + +%build +%configure --enable-sum-directory=%{_libdir}/%{name} +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +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