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

- old
+ new

@@ -36,10 +36,10 @@ 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 Metrics/LineLength + raise InvalidAuthentication, "Expected HMAC to be #{Base64.strict_encode64(expected_hmac)}; got #{Base64.strict_encode64(hmac)} instead" # rubocop:disable Layout/LineLength end cipher.iv = iv cipher.key = key.encryption_key cipher.update(encrypted) + cipher.final