File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -1058,16 +1058,11 @@ module AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorOperations refines Abs
1058
1058
// # using the configured [Attribute Flags](./ddb-table-encryption-config.md) as input.
1059
1059
// Note: InternalLegacyOverride.DecryptItem checks that the legacy policy is correct.
1060
1060
if config. internalLegacyOverride. Some? && config. internalLegacyOverride. value. IsLegacyInput (input) {
1061
- if config. internalLegacyOverride. value. policy == DDBE. LegacyPolicy. FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT {
1062
- return Failure (E("Item is legacy encrypted, but legacy policy is FORBID_LEGACY_ENCRYPT_FORBID_LEGACY_DECRYPT."));
1063
- // We raise this error if internalLegacyOverride is None, because they might be expecting to see it with plaintextOverride.
1064
- } else {
1065
- var decryptItemOutput :- config. internalLegacyOverride. value. DecryptItem (input);
1066
- // = specification/dynamodb-encryption-client/decrypt-item.md#behavior
1067
- // # The item returned by this operation MUST be the item outputted by the
1068
- // # [Legacy Encryptor](./ddb-table-encryption-config.md#legacy-encryptor).
1069
- return Success (decryptItemOutput);
1070
- }
1061
+ var decryptItemOutput :- config. internalLegacyOverride. value. DecryptItem (input);
1062
+ // = specification/dynamodb-encryption-client/decrypt-item.md#behavior
1063
+ // # The item returned by this operation MUST be the item outputted by the
1064
+ // # [Legacy Encryptor](./ddb-table-encryption-config.md#legacy-encryptor).
1065
+ return Success (decryptItemOutput);
1071
1066
}
1072
1067
1073
1068
if (
You can’t perform that action at this time.
0 commit comments