decipher.setAuthTag(buffer)
When using an authenticated encryption mode (only GCM
is currently supported), the decipher.setAuthTag()
method is used to pass in the received authentication tag. If no tag is provided, or if the cipher text has been tampered with, decipher.final()
with throw, indicating that the cipher text should be discarded due to failed authentication.
Please login to continue.