forked from pool/libkcapi
- Update to version 1.4.0
* fix: ensure that LTO is supported (by Simo Sorce) * fix: add LTO regression testing (by Ondrej Mosnacek) * enhancement: add sm3sum, sm3hmac tools, add APIs kcapi_md_sm3, kcapi_md_hmac_sm3 * enhancement: add SM4 convenience functions * fix: support AEAD encryption of arbitrary size with kcapi-enc - removed libkcapi-fix-lto.patch (upstream) - use https url OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=38
This commit is contained in:
parent
71b7889ac7
commit
0a9344b53c
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6b57946eb87bc9cfa544140b6c9a12ef9eefa0a16695578aebf3395f0a78bede
|
||||
size 332912
|
@ -1,11 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAABCAAdFiEEO8xD1NLIfReEtp7kQh7pNjJqwVsFAmDttB4ACgkQQh7pNjJq
|
||||
wVvV4Af/X0t4iZ8ng+AaItGiK3m2Wx1UTJTA1SYTfTTUpENtePKZADG3MX/I5x5N
|
||||
VVO6CTF6ADZFrwrswP+3KIwZpEsrssTEGZ54G0nLbaHTzyXvE9Ec3CPGECgjZGzM
|
||||
T0ZGz0XYykWpEVqQDEFKoLs2yK5U/WYHrde5iV9CW2WHK/6VyuRvzAKzh83n5fDg
|
||||
WlAWGtBQWaGdJAhduLnFx7U7clbpLCuwAZFURWPT1nUamkioT64Io2MfHx+Y9xu+
|
||||
cLLqpOBDZAk34MDA0i09psyfD+NPjtzn5i3IEZO9rs8CpFuEe+tBpoJdGpROhuz2
|
||||
9o9G2TEe8khpGuKnkAJ7G60Ggdcnmg==
|
||||
=e24H
|
||||
-----END PGP SIGNATURE-----
|
BIN
libkcapi-1.4.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
libkcapi-1.4.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
11
libkcapi-1.4.0.tar.xz.asc
Normal file
11
libkcapi-1.4.0.tar.xz.asc
Normal file
@ -0,0 +1,11 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAABCAAdFiEEO8xD1NLIfReEtp7kQh7pNjJqwVsFAmISvaAACgkQQh7pNjJq
|
||||
wVv6jggAh7UpchOXZ1THbDZ0PE+YGWSr3Y3qKHMls9ixNn/RDSYxPvyZqc6pIAKQ
|
||||
zVA6bGtB9kqcSexmrk2EyiUYgi1lo+5HwsfAfHBQaq7vD1S8Q/FYx/XVRv2GQfkj
|
||||
/E1ivlcdcInlpn+vu+7Hei+H/IXtETh8QPwGwRI1Je84pIt7K4K4VPwWpur0su6E
|
||||
oF1AFT6ldlMczsoDTCi3eP3rZWKvMmX5718W9F6eKuTkKoIiipCUxdMBy4f6YpDB
|
||||
1ZmQPHjSgG4URlclQnFiGXYAbMBRHYfguJRl/HjZWSQMigRzqGSdvJR8wrfMeQzr
|
||||
Bk0z0nGayzHgcC7gPz8CsAMJj5C9eQ==
|
||||
=OA3o
|
||||
-----END PGP SIGNATURE-----
|
@ -1,47 +0,0 @@
|
||||
From 71d80bcffca26373149121e026d612146b4695d5 Mon Sep 17 00:00:00 2001
|
||||
From: Simo Sorce <simo@redhat.com>
|
||||
Date: Wed, 14 Jul 2021 10:52:01 -0400
|
||||
Subject: [PATCH] Use GCCs __symver__ attribute
|
||||
|
||||
This is needed to allow LTO builds, as the __asm__ directives do not give
|
||||
enough context to the compiler and the build fails when the -flto flag is
|
||||
passed in.
|
||||
|
||||
Unfotunately __symver__ is avilbel only startig from GCC 10, so we need
|
||||
more macro juggling.
|
||||
|
||||
Signed-off-by: Simo Sorce <simo@redhat.com>
|
||||
Signed-off-by: Stephan Mueller <smueller@chronox.de>
|
||||
---
|
||||
lib/internal.h | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
|
||||
diff --git a/lib/internal.h b/lib/internal.h
|
||||
index 29fdb7b..64dad24 100644
|
||||
--- a/lib/internal.h
|
||||
+++ b/lib/internal.h
|
||||
@@ -350,6 +350,16 @@ static inline int io_getevents(__attribute__((unused)) aio_context_t ctx,
|
||||
#if __GNUC__ >= 4
|
||||
# define DSO_PUBLIC __attribute__ ((visibility ("default")))
|
||||
|
||||
+#if __GNUC__ >= 10
|
||||
+# define IMPL_SYMVER(name, version) \
|
||||
+ __attribute__ ((visibility ("default"))) \
|
||||
+ __attribute__((__symver__("kcapi_" #name "@@LIBKCAPI_" version)))
|
||||
+
|
||||
+# define ORIG_SYMVER(name, version) \
|
||||
+ __attribute__ ((visibility ("default"))) \
|
||||
+ __attribute__((__symver__("kcapi_" #name "@LIBKCAPI_" version)))
|
||||
+
|
||||
+#else
|
||||
# define IMPL_SYMVER(name, version) \
|
||||
__asm__(".global impl_" #name ";"\
|
||||
".symver impl_" #name ",kcapi_" #name "@@LIBKCAPI_" version);\
|
||||
@@ -359,6 +369,7 @@ static inline int io_getevents(__attribute__((unused)) aio_context_t ctx,
|
||||
__asm__(".global orig_" #name ";"\
|
||||
".symver orig_" #name ",kcapi_" #name "@LIBKCAPI_" version);\
|
||||
__attribute__ ((visibility ("default")))
|
||||
+#endif
|
||||
|
||||
#else
|
||||
# error "Compiler version too old"
|
@ -1,3 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 26 12:45:21 UTC 2022 - Marcus Meissner <meissner@suse.com>
|
||||
|
||||
- Update to version 1.4.0
|
||||
* fix: ensure that LTO is supported (by Simo Sorce)
|
||||
* fix: add LTO regression testing (by Ondrej Mosnacek)
|
||||
* enhancement: add sm3sum, sm3hmac tools, add APIs kcapi_md_sm3, kcapi_md_hmac_sm3
|
||||
* enhancement: add SM4 convenience functions
|
||||
* fix: support AEAD encryption of arbitrary size with kcapi-enc
|
||||
- removed libkcapi-fix-lto.patch (upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 26 12:44:40 UTC 2022 - Marcus Meissner <meissner@suse.com>
|
||||
|
||||
- use https url
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 27 08:03:48 UTC 2021 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package libkcapi
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,17 +17,15 @@
|
||||
|
||||
|
||||
Name: libkcapi
|
||||
Version: 1.3.1
|
||||
Version: 1.4.0
|
||||
Release: 0
|
||||
Summary: Linux Kernel Crypto API User Space Interface Library
|
||||
License: GPL-2.0-only
|
||||
Group: Productivity/Security
|
||||
URL: http://www.chronox.de/libkcapi.html
|
||||
URL: https://www.chronox.de/libkcapi.html
|
||||
Source: https://www.chronox.de/libkcapi/libkcapi-%{version}.tar.xz
|
||||
Source1: https://www.chronox.de/libkcapi/libkcapi-%{version}.tar.xz.asc
|
||||
Source2: libkcapi.keyring
|
||||
# https://github.com/smuellerDD/libkcapi/commit/71d80bcffca26373149121e026d612146b4695d5.patch
|
||||
Patch0: libkcapi-fix-lto.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
|
Loading…
Reference in New Issue
Block a user