digitalbazaar / forge

A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps
https://digitalbazaar.com/
Other
5.01k stars 767 forks source link

tag is not generated while creating cipher in AES-GCM mode #1054

Closed Goutham0110 closed 8 months ago

Goutham0110 commented 8 months ago

I am using AES-GCM mode for encryption and decryption. After creating the cipher, after cipher.finish() the tag in cipher.mode.tag is a ByteStringBuffer with empty string in data. Do I have to insert the tag manually or will it get generated automatically based on the message?