45 Commits

Author SHA256 Message Date
48dc5c4651 Accepting request 1267100 from security
- fixed sumprefix to be "." as before, also stores sums in the binary
  directoris. changed back packaging to be same as before. (forwarded request 1267099 from msmeissn)

OBS-URL: https://build.opensuse.org/request/show/1267100
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=10
2025-04-07 15:35:05 +00:00
3533fd6ded Accepting request 1267099 from home:msmeissn:branches:security
- fixed sumprefix to be "." as before, also stores sums in the binary
  directoris. changed back packaging to be same as before.

OBS-URL: https://build.opensuse.org/request/show/1267099
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=44
2025-04-04 09:57:35 +00:00
7a952f15b2 Accepting request 1267089 from home:msmeissn:branches:security
- fixed sumprefix to be "." as before

OBS-URL: https://build.opensuse.org/request/show/1267089
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=43
2025-04-04 09:42:46 +00:00
3d2b7c5bbe Accepting request 1253570 from home:AndreasStieger:branches:security
libkcapi 1.5.0

Note the new paths for hmac files that align with Fedora and other distros - check if any other tooling depends on this

OBS-URL: https://build.opensuse.org/request/show/1253570
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=42
2025-04-04 09:25:39 +00:00
e864138123 Accepting request 1069677 from security
- libkcapi was actually signed by the wrong key (bsc#1207892) (forwarded request 1069676 from msmeissn)

OBS-URL: https://build.opensuse.org/request/show/1069677
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=9
2023-03-07 15:49:02 +00:00
fb941c668c Accepting request 1069676 from home:msmeissn:branches:security
- libkcapi was actually signed by the wrong key (bsc#1207892)

OBS-URL: https://build.opensuse.org/request/show/1069676
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=40
2023-03-06 15:22:43 +00:00
65e8f20f8f Accepting request 972887 from security
please stage with a link of GNUTLS to see if it works now



- 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

- Update to version 1.3.1
  * fix: fix -Wconversion warnings (by Ondrej Mosnacek)
  * fix: fix bad data types in _kcapi_common_send_meta (by Ondrej Mosnacek)
  * fix: Version symbols to maintain ABI compatibility (by Simo Sorce)
  * fix: disable io_getevents on systems that do not support it (by Khem Raj)
  * fix: remove prctl PR_SET_DUMPABLE to allow library to be debugged - as the
    library does not store any sensitive data in data structures it owns, such
    security precautions may not be necessary considering the benefit of
    allowing regular debugging
  * fix: ensure that sendmsg is always used as fallback when vmsplice cannot be
    used
  * enhancement: add kcapi_set_maxsplicesize and kcapi_get_maxsplicesize
  * enhancement: the variable types are changed from int32_t to ssize_t and
    from uint32_t to size_t to match common POSIX and Linux APIs
- Added libkcapi-fix-lto.patch

OBS-URL: https://build.opensuse.org/request/show/972887
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=8
2022-05-17 15:23:59 +00:00
6d615eba20 - 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
2022-04-26 12:47:22 +00:00
c962e30921 Accepting request 908535 from home:gladiac:branches:security:tls
- Update to version 1.3.1
  * fix: fix -Wconversion warnings (by Ondrej Mosnacek)
  * fix: fix bad data types in _kcapi_common_send_meta (by Ondrej Mosnacek)
  * fix: Version symbols to maintain ABI compatibility (by Simo Sorce)
  * fix: disable io_getevents on systems that do not support it (by Khem Raj)
  * fix: remove prctl PR_SET_DUMPABLE to allow library to be debugged - as the
    library does not store any sensitive data in data structures it owns, such
    security precautions may not be necessary considering the benefit of
    allowing regular debugging
  * fix: ensure that sendmsg is always used as fallback when vmsplice cannot be
    used
  * enhancement: add kcapi_set_maxsplicesize and kcapi_get_maxsplicesize
  * enhancement: the variable types are changed from int32_t to ssize_t and
    from uint32_t to size_t to match common POSIX and Linux APIs
- Added libkcapi-fix-lto.patch

OBS-URL: https://build.opensuse.org/request/show/908535
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=37
2021-08-09 08:52:30 +00:00
504dec54b8 Accepting request 831601 from security
- update to 1.2.0:
 * enhancement: kcapi-hasher: add madvise and 64 bit support by Brandur Simonsen
 * fix: fix clang warnding in KDF implementation by Khem Raj
 * fix: fix inverted logic in kcapi-main test logic reported by Ondrej Mosnáček
 * fix: return error when iteration count is zero for PBKDF as reported by
   Guido Vranken
 * enhancement: add function kcapi_cipher_stream_update_last to indicate the
   last block of a symmetric cipher stream operation
 * disable XTS multithreaded tests as it triggers a race discussed in
   https://github.com/smuellerDD/libkcapi/issues/92. The conclusion is
   the following: xts(aes) doesn't support chaining requests like for other
   ciphers such as CBC (at least as implemented in the kernel Crypto API).
   That can be seen in `crypto/testmgr.h` - the ciphers that are expected to
   return IVs usable for chaining have the `.iv_out` entries filled in in their
   test vectors (and those that don't support it do not). One can see that only
   CTR and CBC test vectors have them, not XTS.
   Looking again at how XTS is defined, it seems one could implement
   transparent chaining by simply decrypting the final tweak using the tweak
   key and return it as the output IV... but I believe this has never been
   mandated nor implemented in the Crypto API (likely because of the overhead
   of the final tweak decryption, which would be pointless if you're not going
   to use the output IV - and there is currently no way to signal to the driver
   that you are going to need it).
 * disable AIO parallel tests due to undefined behavior (forwarded request 830821 from dirkmueller)

OBS-URL: https://build.opensuse.org/request/show/831601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=7
2020-09-06 19:35:12 +00:00
0730f2e953 Accepting request 830821 from home:dirkmueller:branches:security
- update to 1.2.0:
 * enhancement: kcapi-hasher: add madvise and 64 bit support by Brandur Simonsen
 * fix: fix clang warnding in KDF implementation by Khem Raj
 * fix: fix inverted logic in kcapi-main test logic reported by Ondrej Mosnáček
 * fix: return error when iteration count is zero for PBKDF as reported by
   Guido Vranken
 * enhancement: add function kcapi_cipher_stream_update_last to indicate the
   last block of a symmetric cipher stream operation
 * disable XTS multithreaded tests as it triggers a race discussed in
   https://github.com/smuellerDD/libkcapi/issues/92. The conclusion is
   the following: xts(aes) doesn't support chaining requests like for other
   ciphers such as CBC (at least as implemented in the kernel Crypto API).
   That can be seen in `crypto/testmgr.h` - the ciphers that are expected to
   return IVs usable for chaining have the `.iv_out` entries filled in in their
   test vectors (and those that don't support it do not). One can see that only
   CTR and CBC test vectors have them, not XTS.
   Looking again at how XTS is defined, it seems one could implement
   transparent chaining by simply decrypting the final tweak using the tweak
   key and return it as the output IV... but I believe this has never been
   mandated nor implemented in the Crypto API (likely because of the overhead
   of the final tweak decryption, which would be pointless if you're not going
   to use the output IV - and there is currently no way to signal to the driver
   that you are going to need it).
 * disable AIO parallel tests due to undefined behavior

OBS-URL: https://build.opensuse.org/request/show/830821
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=35
2020-09-03 06:23:31 +00:00
d0c9082ac0 Accepting request 788020 from security
- updated to 1.1.5:
  - Fix invocation of ansi_cprng in FIPS mode during testing
  - Fix testing on kernels >= 5.0
  - Add virtualization test for kernel 5.1
  - Fix the limit between vmsplice() and sendmsg() by Christophe Leroy
  - Fix remove code duplication by Ondrej Mosnáček
  - Fix potential memleak in speed-test
- updated to 1.1.4:
  - Fix: use sendmsg when processing more than 1<<16 bytes input data which improves performance on some architectures
- updated to 1.1.3:
  - Fix: default location of FIPS 140-2 HMAC control file is .<orig file>.hmac (was accidentally moved to <orig file>.hmac with 1.1.0)
- updated to 1.1.2:
  - Fix: Bug fixes for GCC 8.1.0 regarding string length checks by Krzysztof Kozlowski
  - Enhancement: ensure that tests execute on architectures other than X86 by Ondrej Mosnáček
  - Fix: Bug fix to initialize FDs at the correct time in kcapi-kernel-if.c by Ondrej Mosnáček
  - Test fix: Support test execution outside build environment by Ondrej Mosnáček
- updated to 1.1.1:
  - Fix: Bug fixes for kcapi_hasher by Ondrej Mosnáček
- updated to 1.1.0:
  - API Enhancement: Addition of kcapi_handle_reinit
  - Fix: simplify code by removing the internal *_fd functions from kcapi-kernel-if.c
  - Test enhancement: add IIV speed testing
  - Fix: add a loop around the read system call to always obtain all generated data
  - Fix: use host compiler for compiling docproc (reported by Christophe LEROY, fixed by Björn Esser)
  - Fix: make error handling of hashing applications consistent with coreutils applications (reported by Christophe LEROY)
  - Fix: support for zero length files (patched by Ondrej Mosnáček)
  - Fix: support for zero message hashes on kernels <= 4.9 (patched by Ondrej Mosnáček)
  - Fix: Add Travis CI test system provided by Ondrej Mosnáček
  - Fix: Add several fixes to kcapi-hasher by Ondrej Mosnáček
  - Fix: Add additional tests for kcapi-hasher by Ondrej Mosnáček

OBS-URL: https://build.opensuse.org/request/show/788020
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=6
2020-03-25 22:44:15 +00:00
93acfeb42d OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=33 2020-03-25 07:39:37 +00:00
16c183d9c9 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=32 2020-03-25 07:29:29 +00:00
313d20cfe0 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=31 2020-03-25 07:11:20 +00:00
477c3b67d1 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=30 2020-03-25 06:24:45 +00:00
fe654c3b96 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=29 2020-03-24 18:24:21 +00:00
aff81a0c96 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=28 2020-03-24 17:11:08 +00:00
8900c712be OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=27 2020-03-24 16:59:47 +00:00
c17deaad77 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=26 2020-03-24 16:57:31 +00:00
05a7784436 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=25 2020-03-24 16:38:38 +00:00
e88ca7dea2 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=24 2020-03-24 16:33:24 +00:00
d52636f490 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=23 2020-03-24 16:25:37 +00:00
75e7dd0364 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=22 2020-03-24 14:34:15 +00:00
0d433a279f OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=21 2020-03-24 13:31:46 +00:00
d5790a6ccd Accepting request 765261 from home:msmeissn:branches:security
- updated to 1.1.5:
  - Fix invocation of ansi_cprng in FIPS mode during testing
  - Fix testing on kernels >= 5.0
  - Add virtualization test for kernel 5.1
  - Fix the limit between vmsplice() and sendmsg() by Christophe Leroy
  - Fix remove code duplication by Ondrej Mosnáček
  - Fix potential memleak in speed-test
- updated to 1.1.4:
  - Fix: use sendmsg when processing more than 1<<16 bytes input data which improves performance on some architectures
- updated to 1.1.3:
  - Fix: default location of FIPS 140-2 HMAC control file is .<orig file>.hmac (was accidentally moved to <orig file>.hmac with 1.1.0)
- updated to 1.1.2:
  - Fix: Bug fixes for GCC 8.1.0 regarding string length checks by Krzysztof Kozlowski
  - Enhancement: ensure that tests execute on architectures other than X86 by Ondrej Mosnáček
  - Fix: Bug fix to initialize FDs at the correct time in kcapi-kernel-if.c by Ondrej Mosnáček
  - Test fix: Support test execution outside build environment by Ondrej Mosnáček
- updated to 1.1.1:
  - Fix: Bug fixes for kcapi_hasher by Ondrej Mosnáček
- updated to 1.1.0:
  - API Enhancement: Addition of kcapi_handle_reinit
  - Fix: simplify code by removing the internal *_fd functions from kcapi-kernel-if.c
  - Test enhancement: add IIV speed testing
  - Fix: add a loop around the read system call to always obtain all generated data
  - Fix: use host compiler for compiling docproc (reported by Christophe LEROY, fixed by Björn Esser)
  - Fix: make error handling of hashing applications consistent with coreutils applications (reported by Christophe LEROY)
  - Fix: support for zero length files (patched by Ondrej Mosnáček)
  - Fix: support for zero message hashes on kernels <= 4.9 (patched by Ondrej Mosnáček)
  - Fix: Add Travis CI test system provided by Ondrej Mosnáček
  - Fix: Add several fixes to kcapi-hasher by Ondrej Mosnáček
  - Fix: Add additional tests for kcapi-hasher by Ondrej Mosnáček

OBS-URL: https://build.opensuse.org/request/show/765261
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=20
2020-01-17 12:58:39 +00:00
6c7d7b03a1 Accepting request 756878 from security
OBS-URL: https://build.opensuse.org/request/show/756878
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=5
2019-12-16 16:26:32 +00:00
9eb0c71433 Accepting request 754320 from home:marxin:branches:security
- Use %make_build and respect %optflags.

OBS-URL: https://build.opensuse.org/request/show/754320
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=18
2019-12-13 17:13:37 +00:00
6a1ef2bcd5 Accepting request 733712 from security
- Remove docbook-utils BuildRequires, xmlto is sufficient
- Spec file cleanup, use license macro, drop defattr, drop BuildRoot (forwarded request 733711 from StefanBruens)

OBS-URL: https://build.opensuse.org/request/show/733712
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=4
2019-10-02 09:56:35 +00:00
eedc5c11d4 Accepting request 733711 from home:StefanBruens:branches:openSUSE:Factory
- Remove docbook-utils BuildRequires, xmlto is sufficient
- Spec file cleanup, use license macro, drop defattr, drop BuildRoot

OBS-URL: https://build.opensuse.org/request/show/733711
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=16
2019-09-27 17:04:51 +00:00
8db26f0780 Accepting request 509804 from security
- Change the signing to use openssl sha256/sha512 directly, to
  avoid fipscheck / hmaccalc.

OBS-URL: https://build.opensuse.org/request/show/509804
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=3
2017-07-17 07:08:58 +00:00
7d7eddae75 - Change the signing to use openssl sha256/sha512 directly, to
avoid fipscheck / hmaccalc.

OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=14
2017-07-12 15:00:35 +00:00
e64e517d84 Accepting request 508954 from security
Add reproduciblesort.patch to always link .o files in the same order and
Add reproducibledate.patch to not add current time to man-pages to fix build-compare (forwarded request 508953 from bmwiedemann)

OBS-URL: https://build.opensuse.org/request/show/508954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=2
2017-07-09 11:04:23 +00:00
d894b7ac4e Accepting request 508953 from home:bmwiedemann:branches:security
Add reproduciblesort.patch to always link .o files in the same order and
Add reproducibledate.patch to not add current time to man-pages to fix build-compare

OBS-URL: https://build.opensuse.org/request/show/508953
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=12
2017-07-08 14:11:16 +00:00
bbe05b3dde Accepting request 507396 from security
inclusion to factory

OBS-URL: https://build.opensuse.org/request/show/507396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libkcapi?expand=0&rev=1
2017-07-05 22:01:46 +00:00
0db4f6babf OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=10 2017-06-30 14:36:53 +00:00
22b7cb4ce0 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=9 2017-06-30 14:09:20 +00:00
4059ecfffb Accepting request 507005 from home:msmeissn:branches:security
- libkcapi-use-external-fipshmac.patch: use external fipshmac,
  our chroots / vm builds do not necessarily have the right kernel.

OBS-URL: https://build.opensuse.org/request/show/507005
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=8
2017-06-29 09:56:15 +00:00
75ce7498a9 FATE#323554 bsc#1045948
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=7
2017-06-28 16:11:55 +00:00
af884943ae Accepting request 506724 from home:jengelh:branches:security
- Compact descriptions a bit
- Remove libkcapi provide/requires
- Use %_libdir throughout and avoid /lib

OBS-URL: https://build.opensuse.org/request/show/506724
OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=6
2017-06-28 15:39:33 +00:00
a1d52f90c7 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=5 2017-06-22 17:58:21 +00:00
cf1ce8737d OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=4 2017-06-22 17:54:51 +00:00
08bf3b48c1 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=3 2017-06-22 17:50:58 +00:00
17f123d64d OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=2 2017-06-22 17:50:21 +00:00
a476d8be4e 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
2017-06-22 17:47:29 +00:00