• libkcapi-1.4.0-2.el9
    • None
    • None
    • ZStream
    • 1
    • rhel-sst-security-crypto
    • ssg_security
    • 15
    • 20
    • 3
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Crypto23Q4
    • Approved Blocker
    • Release Note Not Required
    • None

      Description of problem:

      Recent changes in RHEL-9 kerne break the tests in FIPS mode. Since 5.14.0-78.el9 HMAC keys require at least 112 bits and various tests are using 64 bit keys (password / 70617373776f726464 in hex). The following tests fail:

      • /usr/libexec/libkcapi/test.sh
      • /usr/libexec/libkcapi/kcapi-enc-test.sh
      • /usr/libexec/libkcapi/kcapi-dgst-test.sh
      • /usr/libexec/libkcapi/hasher-test.sh
      • /usr/libexec/libkcapi/kcapi-convenience.sh

      It is not a bug, the kernel is now more restrictive about key sizes in FIPS mode because FIPS 140-3 requires it. Tests can be modified to use longer keys.

      Version-Release number of selected component (if applicable):

      libkcapi-1.3.1-3.el9
      5.14.0-283.el9

      How reproducible:

      100% in FIPS mode

      Steps to Reproduce:

      1. Enable FIPS mode

      1. fips-mode-setup --enable && reboot

      2. Disable 3DES cases for test.sh

      1. sed -i 's/HASHEXEC="1 2/HASHEXEC="2/g' /usr/libexec/libkcapi/test.sh
      2. sed -i 's/SYMEXEC="1 2 3 4 5 6 7/SYMEXEC="1 2 3/g' /usr/libexec/libkcapi/test.sh

      3. Run the tests

      1. /usr/libexec/libkcapi/test.sh
      2. /usr/libexec/libkcapi/kcapi-enc-test.sh
      3. /usr/libexec/libkcapi/kcapi-dgst-test.sh
      4. /usr/libexec/libkcapi/hasher-test.sh
      5. /usr/libexec/libkcapi/kcapi-convenience.sh

      Actual results:

      All tests failed (see attached taskout.log).

      Expected results:

      All Test passed.

      Additional info:

      +++ This bug was initially created as a clone of Bug #2180552 +++

              zfridric Zoltan Fridrich
              omoris Ondrej Moris
              Ondrej Moris Ondrej Moris
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: