File: README.md

package info (click to toggle)
libkcapi 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,992 kB
  • sloc: ansic: 13,808; sh: 2,422; perl: 1,949; makefile: 287
file content (54 lines) | stat: -rw-r--r-- 2,291 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
libkcapi test applications
==========================

For the different components of libkcapi there are several tests
as listed in the following:

* `test.sh`: The test script validates the correctness of the
  libkcapi shared library. The shell script uses FIPS 140-2
  CAVS test vectors to verify the correct operation of the interface.

* `kcapi-enc-test.sh`: The kcapi-enc application is tested with
  this script covering the processing of command line options and
  input data. The kcapi-enc operation is verified with openssl enc.

* `kcapi-dgst-test.sh`: The kcapi-dgst application is tested with
  this script covering the processing of command line options and
  input data. The kcapi-dsgt operation is verified with openssl dgst.

* `hasher-test.sh`: The kcapi-hasher application is tested to verify
  that it behaves consistently with the sha*sum and sha*hmac
  applications.

* `kcapi-enc-test-large.sh` invoking the kcapi-enc-test-large.c application:
  That test verifies edge conditions of the algif_skcipher when large
  data chunks are processed.

* `virttest.sh`: Use the eudyptula-boot tool to test older kernel versions
  with libkcapi. This test is only executed if ${HOME}/bin/eudyptula-boot
  is present. If it is present, please check the virttest.sh script for
  configuration of the kernel sources and directories. Example kernel
  configurations that can be used for this kind of testing are found
  in the directory `virttest-kernel-configs`.

* `compile-test.sh`: This script enables all configure options and
  performs a full compilation and installation.

* `libtest.sh`: This script is a library of functions used by the other
  test scripts. It is not intended to be called directly.

All tests are collectively invoked with the `test-invocation.sh` script.
In addition, the following tests are not integrated into the general
test run, but can be enabled by setting `ENABLE_FUZZ_TEST` to any value
before running `test-invocation.sh` :

* `kcapi-fuzz-test.sh`: Execute various fuzzing tests.

Bi-arch tests
-------------

To test both word sizes simultaneously, use `test-invocation.sh` which
compiles and executes the test cases.

You can disable the 32 bit tests by explicitly setting `NO_32BIT_TEST`
to any value before running `test-invocation.sh`.