0 votes
ago by (310 points)

We are currently encrypting our mails as described in Encrypting using RSA with OAEP (RSAES-OAEP) .

We have a request from the receiving party to switch the encryption from AES-128 CBC to AES-128 GCM. But it seems MailEncryptionAlgorithm is not that specific. We can specify AES-128 but have no clue as to what 'version' is used.

Is there a way to specify the algorithm that narrowly using Rebex?

Applies to: Rebex Secure Mail

1 Answer

0 votes
ago by (77.6k points)
selected ago by
 
Best answer

The MailEncryptionAlgorithm.AES128 uses CBC mode. Support for AES128-GCM is planned for the 8.0 version. Actually, it is already available at nuget.org as prerelease version: https://www.nuget.org/packages/Rebex.Mail/8.0.9643-rc.4

The release of final version is scheduled for this month.

From 8.0 version you will be able to specify AES128-GCM like this:

new MailEncryptionParameters(MailEncryptionAlgorithm.AES128GCM)
...