#1 2023-11-29 14:30:32

Stemon63
Member
Registered: 2016-10-24
Posts: 50

Crypto question

Hi,
I would like to use a SynCrypto.pas function for encrypt data with AES mode CTR.
But I must be sure that other external remote systems can decrypt correctly with a given key.
How is possible to ensure the certainty that encrypt in mormot is decrypted in other systems? There are measures to be adopted to make this process compatible (standardise) over time?
Thanks in advance!

Offline

#2 2023-11-29 15:14:16

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,569
Website

Re: Crypto question

Use mORMot 2 and not SynCrypto.pas from mORMot 1.

Just ensure you properly initialized the key and IV.
For instance, check the input encoding of the RawByteString memory buffers.

Consider using AES-GCM if you can, because it will also check the integrity, which is not done by AES-CTR.

Otherwise, the mORMot implementation is pretty standard, and validated against reference vectors and OpenSSL.

Offline

Board footer

Powered by FluxBB