Community discussions

MikroTik App
 
User avatar
Kentzo
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Mon Jan 27, 2014 3:35 pm
Location: California

Hardware accelerated encryption

Tue Dec 12, 2023 2:05 am

Does anyone know if linux kernel run by RouterOS exposes necessary interfaces for apps to use hadrware accelerated encryption?
I'm planning to run an alpine container with strongSwan on AX3 (arm64) and would like to avoid obvious misconfiguration in that regard.
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1068
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: Hardware accelerated encryption

Tue Dec 12, 2023 9:49 pm

If we're talking about AES, just search "linux arm aes instructions" on Google eg

https://www.linaro.org/blog/accelerated ... ux-kernel/
 
User avatar
Kentzo
Long time Member
Long time Member
Topic Author
Posts: 535
Joined: Mon Jan 27, 2014 3:35 pm
Location: California

Re: Hardware accelerated encryption

Tue Dec 12, 2023 9:54 pm

Indeed I'm aware that an implementation is available for the CPU used by AX3. But does "it just works"?
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3506
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Hardware accelerated encryption

Tue Dec 12, 2023 10:14 pm

It should. At the end of the day, a container is just another process(es) & Mikrotik only restricts root-like permissions and raw network interface, everything else is largely pass-through.

But to call it "hardware accelerated encryption" is a bit of a misnomer... in reality ARM offers good CPU instructions for it that linux correctly utilize. You'd notice the difference/problem with "hardware accelerated encryption" on the xMIPSx things where there is a separate path for encryption, but they don't support container so not going to come up.

Who is online

Users browsing this forum: No registered users and 3 guests