Skip to content

Files

Latest commit

7c07629 · Oct 5, 2023

History

History

aes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 5, 2023
Oct 5, 2023
Mar 31, 2022
Oct 5, 2023
Jun 19, 2022

(Partial) implementation of AES and AES-CMAC for BPF

Compiling

Run make in this directory.

Tests

C++ unit tests

Run build/aes/aes-test.

BPF tests

Some automated tests can be executed by running

sudo test/test.py

Manual testing:

  1. Run test/setup.sh to create a test network namespace and veth interface pair.
  2. Load the AES-XDP program: sudo build/aes/xdp-loader build/aes/xdp_aes.o veth0
  3. Start receiver: test/receiver.py 10.1.0.1 6500
  4. Send packets: sudo ip netns exec xdp_test test/sender.py 10.1.0.1 6500
  5. Capture packets with tcpdump: sudo tcpdump -nn -vv -i veth0
  6. When done, delete the network namespace with sudo ip netns delete xdp_test.