Page MenuHomeFreeBSD

caam: Add hwencap support in caam_crypto driver
Needs ReviewPublic

Authored by mszczepaniak2_sii.pl on Fri, Jun 14, 8:45 AM.

Details

Reviewers
andrew
manu
Group Reviewers
arm64
Summary

The hwencap tool uses new ioctl based interface to perform device based
cryptographic data encapsulation. This can be used to encode and decode
any data (for example GELI partition key) in device specific way with
device specific key.

A dedicated character device is added to caam_crypto driver that
implements hwencap ioctl interface to allow blob encapsulation and
decapsulation using CAAM hardware OPT master key.

Authored-by: Maciej Szczepaniak <mszczepaniak2@sii.pl>
Co-Authored-by: Dawid Górecki <dgorecki@sii.pl>
Co-Authored-by: Pawel Kochanowski <pkochanowski@sii.pl>
Obtained from: Sii Poland
Sponsored by: Alstom Group

Test Plan

Change tested on device based on LS1046A.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped