- new package, generate HMACs for FIPS usage.

OBS-URL: https://build.opensuse.org/package/show/security/hmaccalc?expand=0&rev=1
This commit is contained in:
Marcus Meissner 2014-04-14 09:19:02 +00:00 committed by Git OBS Bridge
commit 7d67fac81f
6 changed files with 172 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

3
hmaccalc-0.9.13.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a00b507555e45f58c1659d28f4d27e63373735a30cfe70e2c939f679cd266cc
size 106979

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

Binary file not shown.

5
hmaccalc.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Mon Apr 14 09:16:33 UTC 2014 - meissner@suse.com
- new package, generate HMACs for FIPS usage.

59
hmaccalc.keyring Normal file
View File

@ -0,0 +1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ijAD4fWCVcx6g/fi44eso
GXDWy44Z80JOiXjqZcktmgYp04IzdwmuDosti0phF6VxEa6DXnVZ/cdOMoSNA0yU
PVjr1C9xnOcXpRABdKNlYxrGKx6pt6Lmn4LbYBmSWINnB5q+VzG0Rduulzu/OktS
4gpKzTAtT6fWePuzL/MlxzQJj/IZeU0+G9ehkVpTzwh05mTQyl8NHNs1cMHxBMZQ
RlYRhxEUql/46j7F+oQOAERArg07U136KC/ss9KoejTafhJsPNa68wqV3dtz1MZB
zv8uxjdM
=fNX2
-----END PGP PUBLIC KEY BLOCK-----

82
hmaccalc.spec Normal file
View File

@ -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