Topic: AES GCM block processing - can I do it using existing WolfSSL APIs?
Greetings -
I wish encrypt smaller AES GCM "chunks" for the same reason described in this thread:
https://www.wolfssl.com/forums/topic126 … ption.html
I wish to encrypt data in smaller chunks/blocks, using an "init", "update", "update", "final" Java-style API that provides the data in blocks, rather than encrypting all the data in one WolfSSL API call.
Question: Is encrypting smaller chunks/blocks of data possible with the existing WolfSSL AES GCM APIs?
I found this explanation in another WolfSSL forum append that made it seem possible:
"authIn - input authentication vector The only time authIn is used is when GCM is used like a block cipher and the authTag OUTPUT from a previous call is passed BACK in as an INPUT so it can be updated in subsequent calls."
I attempted using AES GCM as a block cipher, employing the stmt above and the WolfSSL AES GCM decrypt function returned -180 (bad tag).
Do I need to adjust the IV (or some counter?) on each WolfSSL AES GCM encrypt call in this case? Is this scenario even possible?
Thank you for any help that can be provided,
Craig Gwydir