v2_5_5 - Show latest stable - 0 notes - Class: Cipher
auth_tag=(p1) public

Sets the authentication tag to verify the integrity of the ciphertext. This can be called only when the cipher supports AE. The tag must be set after calling Cipher#decrypt, Cipher#key= and Cipher#iv=, but before calling Cipher#final. After all decryption is performed, the tag is verified automatically in the call to Cipher#final.

For OCB mode, the tag length must be supplied with #auth_tag_len= beforehand.

Show source
Register or log in to add new notes.