The kernel-crypto-api interface

The kernel-crypto-api interface allows access to the Linux kernel crypto API, which itself provides a set of cryptographic ciphers and other data transformation mechanisms.

Interface documentation:
See Interface management and Supported interfaces for further details on how interfaces are used.

Developer details

Auto-connect: no

The kernel crypto API has been designed to be used by any process such that using it requires no special privileges. As this provides a kernel surface, and has a CVE history, this interface needs to be manually connected.

Code examples

The test code can be found in the snapd repository:

The source code for the interface is in the snapd repository: