mirror of
https://github.com/torvalds/linux
synced 2026-07-22 02:00:44 +09:00
Add a local implementation of FCrypt-PCBC encryption and decryption.
This will be used instead of the crypto API one, allowing the crypto API
one to be removed. It will also simplify rxkad.c quite a bit.
A KUnit test is included. The FCrypt-PCBC test vectors are borrowed
from the existing ones in crypto/testmgr.h. Note that this adds the
first KUnit test for net/rxrpc/, which previously had no KUnit tests.
The FCrypt code is based on crypto/fcrypt.c, but I simplified it a bit.
The PCBC part is straightforward and I just wrote it from scratch.
Tested with:
kunit.py run --kunitconfig net/rxrpc/
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Tested-by: Marc Dionne <marc.dionne@auristor.com>
Link: https://patch.msgid.link/20260522050740.84561-2-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
50 lines
781 B
Makefile
50 lines
781 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for Linux kernel RxRPC
|
|
#
|
|
|
|
obj-$(CONFIG_AF_RXRPC) += rxrpc.o
|
|
|
|
rxrpc-y := \
|
|
af_rxrpc.o \
|
|
call_accept.o \
|
|
call_event.o \
|
|
call_object.o \
|
|
call_state.o \
|
|
conn_client.o \
|
|
conn_event.o \
|
|
conn_object.o \
|
|
conn_service.o \
|
|
input.o \
|
|
input_rack.o \
|
|
insecure.o \
|
|
io_thread.o \
|
|
key.o \
|
|
local_event.o \
|
|
local_object.o \
|
|
misc.o \
|
|
net_ns.o \
|
|
oob.o \
|
|
output.o \
|
|
peer_event.o \
|
|
peer_object.o \
|
|
recvmsg.o \
|
|
rtt.o \
|
|
security.o \
|
|
sendmsg.o \
|
|
server_key.o \
|
|
skbuff.o \
|
|
txbuf.o \
|
|
utils.o
|
|
|
|
rxrpc-$(CONFIG_PROC_FS) += proc.o
|
|
rxrpc-$(CONFIG_RXKAD) += rxkad.o fcrypt.o
|
|
rxrpc-$(CONFIG_SYSCTL) += sysctl.o
|
|
rxrpc-$(CONFIG_RXGK) += \
|
|
rxgk.o \
|
|
rxgk_app.o \
|
|
rxgk_kdf.o
|
|
|
|
obj-$(CONFIG_RXPERF) += rxperf.o
|
|
obj-$(CONFIG_KUNIT) += tests/
|