How To Install libkcapi on Fedora 34

libkcapi is User space interface to the Linux Kernel Crypto API User space interface to the Linux Kernel Crypto API

Introduction

In this tutorial we learn how to install libkcapi on Fedora 34.

What is libkcapi

libkcapi allows user-space to access the Linux kernel crypto API. This library uses the netlink interface and exports easy to use APIs so that a developer does not need to consider the low-level netlink interface handling. The library does not implement any cipher algorithms. All consumer requests are sent to the kernel for processing. Results from the kernel crypto API are returned to the consumer via the library API. The kernel interface and therefore this library can be used by unprivileged processes. libkcapi 1.2.1 1.fc34 x86_64 43 k libkcapi-1.2.1-1.fc34.src.rpm fedora User space interface to the Linux Kernel Crypto API https BSD or GPLv2 libkcapi allows user-space to access the Linux kernel crypto API. This library uses the netlink interface and exports easy to use APIs so that a developer does not need to consider the low-level netlink interface handling. The library does not implement any cipher algorithms. All consumer requests are sent to the kernel for processing. Results from the kernel crypto API are returned to the consumer via the library API. The kernel interface and therefore this library can be used by unprivileged processes.

We can use yum or dnf to install libkcapi on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libkcapi.

Install libkcapi on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libkcapi using dnf by running the following command:

sudo dnf -y install libkcapi

Install libkcapi on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install libkcapi using yum by running the following command:

sudo yum -y install libkcapi

How To Uninstall libkcapi on Fedora 34

To uninstall only the libkcapi package we can use the following command:

sudo dnf remove libkcapi

libkcapi Package Contents on Fedora 34

/lib/fipscheck/libkcapi.so.1.2.1.hmac
/lib/fipscheck/libkcapi.so.1.hmac
/lib/libkcapi.so.1
/lib/libkcapi.so.1.2.1
/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/4cd37b4477361bf79655dbc4d6a3f57b1ab322
/usr/lib/sysctl.d/50-libkcapi-optmem_max.conf
/usr/share/doc/libkcapi
/usr/share/doc/libkcapi/README.fedora
/usr/share/doc/libkcapi/README.md
/usr/share/licenses/libkcapi
/usr/share/licenses/libkcapi/COPYING
/usr/share/licenses/libkcapi/COPYING.bsd
/usr/share/licenses/libkcapi/COPYING.gplv2
/lib64/fipscheck/libkcapi.so.1.2.1.hmac
/lib64/fipscheck/libkcapi.so.1.hmac
/lib64/libkcapi.so.1
/lib64/libkcapi.so.1.2.1
/usr/lib/.build-id
/usr/lib/.build-id/c7
/usr/lib/.build-id/c7/26a967b2075bd42bdf466bbfce008a92d5e04d
/usr/lib/sysctl.d/50-libkcapi-optmem_max.conf
/usr/share/doc/libkcapi
/usr/share/doc/libkcapi/README.fedora
/usr/share/doc/libkcapi/README.md
/usr/share/licenses/libkcapi
/usr/share/licenses/libkcapi/COPYING
/usr/share/licenses/libkcapi/COPYING.bsd
/usr/share/licenses/libkcapi/COPYING.gplv2

References

Summary

In this tutorial we learn how to install libkcapi on Fedora 34 using yum and dnf.