lib/keyring/encryptor/aes.rb in attr_keyring-0.6.1 vs lib/keyring/encryptor/aes.rb in attr_keyring-0.7.0

- old
+ new

@@ -36,10 +36,13 @@ encrypted = encrypted_payload[16..-1] expected_hmac = hmac_digest(key.signing_key, encrypted_payload) unless verify_signature(expected_hmac, hmac) - raise InvalidAuthentication, "Expected HMAC to be #{Base64.strict_encode64(expected_hmac)}; got #{Base64.strict_encode64(hmac)} instead" # rubocop:disable Layout/LineLength + raise InvalidAuthentication, + "Expected HMAC to be " \ + "#{Base64.strict_encode64(expected_hmac)}; " \ + "got #{Base64.strict_encode64(hmac)} instead" end cipher.iv = iv cipher.key = key.encryption_key cipher.update(encrypted) + cipher.final