decipher.setAuthTag()

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.

doc_Nodejs
2016-04-30 04:38:39
Comments
Leave a Comment

Please login to continue.