Topic: AES stream call API implementation

Hi,

I am using wolfssl's AES encryption API.  Sometimes I don't have memory enough to buffer all incoming chunks of data, so I would like to use APIs that enable to update data chunks in multiple times.
I think it might look like Sha APIs:

wc_InitSha
wc_ShaUpdate
wc_ShaFinal

In theory, AES processes block by block, so in my opinion it is possible to provide some APIs to allow user updating multiple times.
However, after investigating, I see wolfssl has such APIs for only ECB and GCM modes.

wc_AesGcmEncryptInit
wc_AesGcmEncryptUpdate
wc_AesGcmEncryptFinal

wolfssl has not supported stream call for other AES modes, isn't it?

Could you help to confirm?

Thank you.

Share

Re: AES stream call API implementation

Hello dientc.511,
We also have streaming for Gmac and AES-EAX. You can search for the following API

wc_AesEaxInit()
wc_AesEaxEncryptUpdate()
wc_AesEaxEncryptFinal()

What other modes were you looking for?

Warm regards, Anthony

Share

Re: AES stream call API implementation

Hi Anthony,

Thanks for your information.

I would like to use stream call API for modes as CBC and CCM which are quite popular in TLS communication.

Best Regards,

Dien

Share

Re: AES stream call API implementation

Hi Dien,

I understand. Would you like to register your interest in CBC and CCM mode stream APIs as an official feature request?  It will only take a few minutes of your time.  If so, please send an email to support@wolfssl.com referencing this forum thread.

Warm regards, Anthony

Share