Skip to content

Commit bdf405b

Browse files
committed
m
1 parent 583f771 commit bdf405b

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorOperations.dfy

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,16 +1058,11 @@ module AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorOperations refines Abs
10581058
//# using the configured [Attribute Flags](./ddb-table-encryption-config.md) as input.
10591059
// Note: InternalLegacyOverride.DecryptItem checks that the legacy policy is correct.
10601060
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);
10711066
}
10721067

10731068
if (

0 commit comments

Comments
 (0)