AES256 -AAD -GCM/Nopadding

Hello Team , 

           How to use AAD using GCM for AES256 , could you suggest any API for that .any sample code for this ?

 How to use AAD in AES256 Encryption ? 

Parents Reply
  • Hello,

    We tested this sample code with our own values and found that it goes into an infinite loop. We confirmed the bytes of all values. Key 32-bytes,.IV 12-bytes + padding = 16-bytes,.AAD 16-bytes.

    doubts:
    1) As you stated in the sample code, all values are sets of keys (.Key,.IV,.AAD)??
    2) Is there any relationship between them?
    3) If we replace any one key, for example, counter0.key with counter1.key, we get an infinite loop.

Children