auth_tag

cipher.auth_tag([ tag_len ] â string
Instance Public methods

Gets the authentication tag generated by Authenticated Encryption Cipher modes (GCM for example). This tag may be stored along with the ciphertext, then set on the decryption cipher to authenticate the contents of the ciphertext against changes. If the optional integer parameter tag_len is given, the returned tag will be tag_len bytes long. If the parameter is omitted, the maximum length of 16 bytes will be returned. For maximum security, the default of 16 bytes should be chosen.

The tag may only be retrieved after calling #final.

doc_ruby_on_rails
2015-04-24 22:01:54
Comments
Leave a Comment

Please login to continue.