Accepting request 505746 from home:msmeissn
library interface for the kernel crypto api OBS-URL: https://build.opensuse.org/request/show/505746 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=1
This commit is contained in:
commit
8880968bb6
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
libkcapi-0.13.0.tar.bz2
Normal file
3
libkcapi-0.13.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2c4dbdc06623552c142a41bb8a659fc147abd804957a9228d1666e903cdc7ba8
|
||||
size 227482
|
7
libkcapi.changes
Normal file
7
libkcapi.changes
Normal file
@ -0,0 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 22 14:03:43 UTC 2016 - abergmann@suse.com
|
||||
|
||||
- Initial release 0.13.0.
|
||||
|
||||
A library and tools to access the kernel crypto api.
|
||||
|
109
libkcapi.spec
Normal file
109
libkcapi.spec
Normal file
@ -0,0 +1,109 @@
|
||||
#
|
||||
# spec file for package libkcapi
|
||||
#
|
||||
# Copyright (c) 2017 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: libkcapi
|
||||
Version: 0.13.0
|
||||
Release: 0
|
||||
Summary: Linux Kernel Crypto API User Space Interface Library
|
||||
License: GPL-2.0
|
||||
Group: Productivity/Security
|
||||
Url: http://www.chronox.de/libkcapi.html
|
||||
#Source: https://github.com/smuellerDD/libkcapi/archive/v0.13.0.zip
|
||||
Source: libkcapi-0.13.0.tar.bz2
|
||||
# this ensures this kernel is booted actually... as the kernel crypto api is used during.
|
||||
BuildRequires: kernel-default
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
libkcapi allows user-space to access the Linux kernel crypto API.
|
||||
|
||||
libkcapi uses this Netlink interface and exports easy to use APIs so that a
|
||||
developer does not need to consider the low-level Netlink interface handling.
|
||||
|
||||
The library does not implement any cipher algorithms. All consumer requests are
|
||||
sent to the kernel for processing. Results from the kernel crypto API are
|
||||
returned to the consumer via the library API.
|
||||
|
||||
The kernel interface and therefore this library can be used by unprivileged
|
||||
processes.
|
||||
|
||||
The focus during the development of this library is put on speed. This library
|
||||
does not perform any memcpy for processing the cryptographic data! The library
|
||||
uses scatter / gather lists to eliminate the need for moving data around in
|
||||
memory.
|
||||
|
||||
%package -n libkcapi0
|
||||
Summary: Linux Kernel Crypto API User Space Interface Library
|
||||
Group: System/Libraries
|
||||
Provides: %{name} = %{version}-%{release}
|
||||
Obsoletes: %{name} < %{version}-%{release}
|
||||
|
||||
%description -n libkcapi0
|
||||
libkcapi allows user-space to access the Linux kernel crypto API.
|
||||
|
||||
%package devel
|
||||
Summary: Linux Kernel Crypto API User Space Interface Library
|
||||
Group: Development/Languages/C and C++
|
||||
Requires: libkcapi = %{version}
|
||||
|
||||
%description devel
|
||||
libkcapi allows user-space to access the Linux kernel crypto API.
|
||||
|
||||
%package tools
|
||||
Summary: Linux Kernel Crypto API User Space Tools
|
||||
Group: System/Libraries
|
||||
|
||||
%description tools
|
||||
libkcapi user space tools to access certain hash algorithms.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
cd lib
|
||||
make %{?_smp_mflags}
|
||||
cd ../apps
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
cd lib
|
||||
make install DESTDIR=%{buildroot} %{?_smp_mflags}
|
||||
cd ../apps
|
||||
make install DESTDIR=%{buildroot} %{?_smp_mflags} BINDIR=/usr/%_lib/libkcapi/
|
||||
|
||||
%post -n libkcapi0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libkcapi0 -p /sbin/ldconfig
|
||||
|
||||
%files -n libkcapi0
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES COPYING
|
||||
/%{_lib}/libkcapi.so.0.13.*
|
||||
/%{_lib}/libkcapi.so.0
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/kcapi.h
|
||||
|
||||
%files tools
|
||||
%defattr(-,root,root)
|
||||
%dir /%{_libdir}/libkcapi
|
||||
/%{_libdir}/libkcapi/*
|
||||
/%{_libdir}/libkcapi/.*hmac
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user