Method: Chef::EncryptedDataBagItem::Encryptor::Version3Encryptor#auth_tag
- Defined in:
- lib/chef/encrypted_data_bag_item/encryptor.rb
#auth_tag ⇒ Object
Returns a wrapped and encrypted version of plaintext_data suitable for Returns the auth_tag.
190 191 192 193 194 195 196 197 198 |
# File 'lib/chef/encrypted_data_bag_item/encryptor.rb', line 190 def auth_tag # Generated auth_tag comes from OpenSSL::Cipher#auth_tag # This must be generated after the data is encrypted if @auth_tag.nil? raise EncryptionFailure, "Internal Error: GCM authentication tag read before encryption" end @auth_tag end |