Commit Graph

41 Commits

Author SHA256 Message Date
Dominique Leuenberger
1382a5ff8d 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
df6a8ac6c4 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
Dominique Leuenberger
6e5894e010 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
0a9344b53c - 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
71b7889ac7 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
Dominique Leuenberger
9ab23e5aad 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
742ba25f6d 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
Dominique Leuenberger
2ca4bc9e21 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
3403934813 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=33 2020-03-25 07:39:37 +00:00
37e05d690f OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=32 2020-03-25 07:29:29 +00:00
fa7295fd36 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=31 2020-03-25 07:11:20 +00:00
f3063ca487 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=30 2020-03-25 06:24:45 +00:00
25b1ff4350 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=29 2020-03-24 18:24:21 +00:00
c265cd4278 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=28 2020-03-24 17:11:08 +00:00
fd11222c9e OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=27 2020-03-24 16:59:47 +00:00
9c67c0a0b8 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=26 2020-03-24 16:57:31 +00:00
ad844bae1a OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=25 2020-03-24 16:38:38 +00:00
fce2fb7875 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=24 2020-03-24 16:33:24 +00:00
86037d4b06 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=23 2020-03-24 16:25:37 +00:00
4e4773141e OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=22 2020-03-24 14:34:15 +00:00
b884f88a72 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=21 2020-03-24 13:31:46 +00:00
9ab73937f1 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
Dominique Leuenberger
64b119618a 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
ffddc1394d 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
Dominique Leuenberger
1a67c592cf 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
cc58a865e2 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
Dominique Leuenberger
23298e13ac 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
2c65ca3bff - 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
Dominique Leuenberger
557970aefc 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
06fc11f271 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
Dominique Leuenberger
ba0053f65b 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
eeaa7c2a44 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=10 2017-06-30 14:36:53 +00:00
673af78dd7 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=9 2017-06-30 14:09:20 +00:00
fb0569cfc9 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
c0795e8fb0 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
09cf786891 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
4f7f0bc3a5 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=5 2017-06-22 17:58:21 +00:00
6d7786381e OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=4 2017-06-22 17:54:51 +00:00
4cf7caf656 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=3 2017-06-22 17:50:58 +00:00
5a699fcf88 OBS-URL: https://build.opensuse.org/package/show/security/libkcapi?expand=0&rev=2 2017-06-22 17:50:21 +00:00
8880968bb6 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