Page 1 of 1
AES-GCM HW acceleration in CCR
Posted: Sat Jul 09, 2016 12:33 am
by smunaut
Hi,
Is there any hope to get hw accelerated AES-GCM-128 (or 256) in CCR ?
As far as I understand the GCM mode is actually easier to do fast and doesn't have the pipelining dependency of the CBC mode, so I'd actually expect the performance to be better ...
I can't see any real "hardware module" on the Tilera CPU for AES, so I assume that it's just "hand optimized" assembly in which case I'd expect adding GCM to be possible.
Cheers,
Sylvain
Re: AES-GCM HW acceleration in CCR
Posted: Sat Jul 09, 2016 12:50 pm
by nz_monkey
I too have wondered this.
Several of our customers require AES-GCM to be used as part of their corporate security policy.
Hopefully a Mikrotik staffer can reply.
Re: AES-GCM HW acceleration in CCR
Posted: Tue Jul 26, 2016 10:29 pm
by smunaut
So ... no reply whatsoever from Mikrotik ...
Re: AES-GCM HW acceleration in CCR
Posted: Wed Jul 27, 2016 9:58 am
by andriys
So ... no reply whatsoever from Mikrotik ...
Let me repeat it again: This is a USER forum. Write to support@ when in need of an official answer from Mikrotik.
Re: AES-GCM HW acceleration in CCR
Posted: Thu Jul 28, 2016 10:16 am
by smunaut
Except their website states that support@ is only for people having bought their hardware from them directly ...
(and I don't even really see how that's possible, they don't seem to sell anything themselves directly and always point to distributors)
Re: AES-GCM HW acceleration in CCR
Posted: Thu Jul 28, 2016 11:00 am
by pe1chl
In my experience, you can always send bug reports and feature requests to that address, no matter where you bought your equipment.
Of course don't expect immediate addition of a requested feature, it will probably go on a long triage list.
When you request "hands-holding support how to setup your home access point" they may be more strict in referring you to a reseller,
but I never tried that.
Re: AES-GCM HW acceleration in CCR
Posted: Thu Jul 28, 2016 11:02 am
by mrz
There is a plan to make HW acceleration for GCM.
Re: AES-GCM HW acceleration in CCR
Posted: Thu Jul 28, 2016 11:58 am
by nz_monkey
There is a plan to make HW acceleration for GCM.
Thank you for the confirmation Maris.
Re: AES-GCM HW acceleration in CCR
Posted: Tue Jul 31, 2018 12:14 pm
by mikruser
There is a plan to make HW acceleration for GCM.
Thank you for the confirmation Maris.
As it turned out, the confirmation was not true
Re: AES-GCM HW acceleration in CCR
Posted: Tue Jul 31, 2018 12:53 pm
by mrz
RB1100AHx4 now supports GCM, if it is absolutely necessary you can pick product that supports it.
Re: AES-GCM HW acceleration in CCR
Posted: Tue Jul 31, 2018 2:27 pm
by mikruser
This topic about CCR
Re: AES-GCM HW acceleration in CCR
Posted: Wed Nov 10, 2021 1:39 pm
by mikruser
I can't see any real "hardware module" on the Tilera CPU for AES, so I assume that it's just "hand optimized" assembly in which case I'd expect adding GCM to be possible.
You are wrong, Tilera CPU have hardware accelerators (MiCA), and GCM mode supported
see processor architecture overview:
https://cdn.manesht.ir/17871___21076964 ... ILE-Gx.pdf
5.1.8 Crypto Accelerators
The MiCA crypto accelerator supports a rich suite of cryptographic algorithms to enable many
security protocols, including:
• MACsec (802.1AE)
• IPsec
• SRTP
• SSL/TLS
• Wireless GSM and 3GPP
The MiCA engine supports a range of modes from simple encryption/decryption to complex
“packet processing” sequences that offload many of the security protocol steps. However, bulk
encryption or proprietary security protocols are also easily supported since the encapsulation and
header/trailer processing can be completely handled in tile software.
For key generation, a true entropy-based Random Number Generator (RNG) is incorporated
on-chip and it includes a FIPS-140-2 certified whitening function.
The TILE-Gx8036 MiCA system delivers up to 30Gbps of AES encryption performance (128-bit
key, CBC or GCM mode).
The symmetric encryption algorithms supported are:
Table 13. Supported Symmetric Encryption Algorithms
Encryption Type Key Size Modes
AES 128, 192, 256-bits CBC, GCM, CTR, ECB
3DES 56, 168-bits CBC, ECB
ARC4 40 - 256-bits Stream cipher
KASUMI 128-bits Stream cipher
SNOW 3G 128-bits Stream cipher
Re: AES-GCM HW acceleration in CCR
Posted: Wed Nov 17, 2021 3:09 pm
by mikruser
another example of idiotic tech support (they did not answer the question, and forcibly closed the ticket):
>>Hello,
>>Why CCR10xx do not support aes-gcm hardware acceleration?
Emīls Z.2 days ago 8:57 AM
Hello,
Thank you for your question, however not sure what answer do you expect. It is either a software or hardware limitation making AES-GCM not supported for TILE.
>>But aes-gcm hardware acceleration is supported on TILE
>>see chapter 5.1.8
>>link to pdf
Emīls Z.3 hours ago
Hello,
AES-GCM hw support was not added initially. We will consider adding it in the future.
>>AES-GCM hw support was not added initially.
>>my question is exactly about this. why?
>>9 years have already passed
Your request status changed to Closed with resolution Done.