Community discussions

MikroTik App
 
smunaut
newbie
Topic Author
Posts: 26
Joined: Fri Jul 08, 2016 10:24 pm

AES-GCM HW acceleration in CCR

Sat Jul 09, 2016 12:33 am

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
 
User avatar
nz_monkey
Forum Guru
Forum Guru
Posts: 2103
Joined: Mon Jan 14, 2008 1:53 pm
Location: Over the Rainbow
Contact:

Re: AES-GCM HW acceleration in CCR

Sat Jul 09, 2016 12:50 pm

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.
 
smunaut
newbie
Topic Author
Posts: 26
Joined: Fri Jul 08, 2016 10:24 pm

Re: AES-GCM HW acceleration in CCR

Tue Jul 26, 2016 10:29 pm

So ... no reply whatsoever from Mikrotik ...
 
andriys
Forum Guru
Forum Guru
Posts: 1527
Joined: Thu Nov 24, 2011 1:59 pm
Location: Kharkiv, Ukraine

Re: AES-GCM HW acceleration in CCR

Wed Jul 27, 2016 9:58 am

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.
 
smunaut
newbie
Topic Author
Posts: 26
Joined: Fri Jul 08, 2016 10:24 pm

Re: AES-GCM HW acceleration in CCR

Thu Jul 28, 2016 10:16 am

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)
 
pe1chl
Forum Guru
Forum Guru
Posts: 10223
Joined: Mon Jun 08, 2015 12:09 pm

Re: AES-GCM HW acceleration in CCR

Thu Jul 28, 2016 11:00 am

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.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: AES-GCM HW acceleration in CCR

Thu Jul 28, 2016 11:02 am

There is a plan to make HW acceleration for GCM. 
 
User avatar
nz_monkey
Forum Guru
Forum Guru
Posts: 2103
Joined: Mon Jan 14, 2008 1:53 pm
Location: Over the Rainbow
Contact:

Re: AES-GCM HW acceleration in CCR

Thu Jul 28, 2016 11:58 am

There is a plan to make HW acceleration for GCM. 
Thank you for the confirmation Maris.
 
mikruser
Long time Member
Long time Member
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: AES-GCM HW acceleration in CCR

Tue Jul 31, 2018 12:14 pm

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
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: AES-GCM HW acceleration in CCR

Tue Jul 31, 2018 12:53 pm

RB1100AHx4 now supports GCM, if it is absolutely necessary you can pick product that supports it.
 
mikruser
Long time Member
Long time Member
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: AES-GCM HW acceleration in CCR

Tue Jul 31, 2018 2:27 pm

This topic about CCR
 
mikruser
Long time Member
Long time Member
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: AES-GCM HW acceleration in CCR

Wed Nov 10, 2021 1:39 pm


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
 
mikruser
Long time Member
Long time Member
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: AES-GCM HW acceleration in CCR

Wed Nov 17, 2021 3:09 pm

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.

Who is online

Users browsing this forum: stef70 and 123 guests