Proton a new Linux kernel module for crypto functions callable from XDP
github.com·5h·
Discuss: Hacker News
Flag this post

proton

Proton is a linux kernel module based on libhydrogen that provides crypto functions callable from XDP programs

Why?

Because I’m crazy and I write highly performant network components and backends in XDP, and I need access to crypto functions to make those work. Maybe you’re crazy too?

Usage

Run ./install.sh to build and install the kernel module and set it to load on boot.

Now you can include proton.h in your XDP programs and call crypto functions like this:

#define PROTON_SIGN_PUBLIC_KEY_BYTES              32
#define PROTON_SIGN_PRIVATE_KEY_BYTES             64

#define PROTON_SECRETBOX_KEY_BYTES                32
#define PROTON_SECRETBOX_CRYPTO_HEADER_BYTES      36

struct proton_sign_create_args
{
__u8 private_k...

Similar Posts

Loading similar posts...