summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-09-15 08:55:50 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-09-15 08:55:50 +0200
commitb2d02587fcd86f0c3910441d58c94dd0c9fea5b5 (patch)
treedda86f59664bf4265733816ef90df912d50fcd5e /src/fastd.h
parent541ee8295e0fe1b7c51fa4aee74aaa12f696860b (diff)
downloadfastd-b2d02587fcd86f0c3910441d58c94dd0c9fea5b5.tar
fastd-b2d02587fcd86f0c3910441d58c94dd0c9fea5b5.zip
Add support for kernel AES implementations
This gives AES128 a slight boost on my system, but it is still slower than XSalsa20... I should probably write userspace code that can make use of AES-NI and CLMUL. Or directly jump to the kernel space with the whole forwarding code. Nevertheless, this might run nicely on Geode CPUs and similar hardware with AES acceleration, at least if the context switches aren't too expensive...
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 80ec0d2..3981f46 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -216,6 +216,7 @@ struct _fastd_context {
int sock6fd;
int algfd_ghash;
+ int algfd_aesctr;
size_t eth_addr_size;
size_t n_eth_addr;