MIPS IPsec library
Forked from https://sourceforge.net/projects/mcespi/files/
Those of you that are on MIPS big endian machines can replace the default
aes_generic.ko,sha_generic.ko,cbc.koandmd5.komodules with a single assembler optimizedmcespi.ko. The module is quite some years old and a first experience with crypto modules. Nevertheless it will work quite fine but needs manual compiling. The easyiest way to install it includes a few steps.
- create a buildroot environment
- compile an image for your router once
- put the
mcespi.cinto the the folderbuild_dir/target-<arch>/linux-<cpu-model>/linux-X.Y.Z/crypto- Include the line
obj-$(CONFIG_CRYPTO_MD5) += mcespi.ointobuild_dir/target-<arch>/linux-<cpu-model>/linux-X.Y.Z/crypto/Makefile- compile the image once again.
- Afterwards you will find
build_dir/target-<arch>/linux-<cpu-model>/linux-X.Y.Z/crypto/mcespi.ko- Put
mcespi.koto your router into/lib/modules/<X.Y.Z>- Load the module with
insmod- For automatic loading create a new
/etc/modules.d/09-crypto-mcespiwith corresponding content.
(documentation taken from https://openwrt.org/docs/guide-user/services/vpn/ipsec/strongswan/performance#mips_tuning)