Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 083bed5

Browse files
committedMar 12, 2025·
Index.dfy
1 parent 7128219 commit 083bed5

File tree

2 files changed

+5
-9
lines changed
  • DynamoDbEncryption/dafny

2 files changed

+5
-9
lines changed
 

‎DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src/Index.dfy

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ include "DdbMiddlewareConfig.dfy"
55
include "AwsCryptographyDbEncryptionSdkDynamoDbTransformsOperations.dfy"
66
include "../../DynamoDbEncryption/src/ConfigToInfo.dfy"
77

8-
module
9-
{:extern "software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny" }
10-
DynamoDbEncryptionTransforms refines AbstractAwsCryptographyDbEncryptionSdkDynamoDbTransformsService
8+
module {:extern "software.amazon.cryptography.dbencryptionsdk.dynamodb.transforms.internaldafny" } DynamoDbEncryptionTransforms
9+
refines AbstractAwsCryptographyDbEncryptionSdkDynamoDbTransformsService
1110
{
1211
import opened DdbMiddlewareConfig
1312
import opened StandardLibrary
@@ -130,7 +129,6 @@ module
130129
(if tableConfig.keyring.Some? then tableConfig.keyring.value.Modifies else {})
131130
+ (if tableConfig.cmm.Some? then tableConfig.cmm.value.Modifies else {})
132131
+ (if tableConfig.legacyOverride.Some? then tableConfig.legacyOverride.value.encryptor.Modifies else {})
133-
+ (if tableConfig.search.Some? then tableConfig.search.value.versions[0].keyStore.Modifies else {})
134132
)
135133
:: o;
136134

@@ -151,11 +149,10 @@ module
151149
var tableName: string := tableNamesSeq[i];
152150

153151
var inputConfig := config.tableEncryptionConfigs[tableName];
154-
:- Need(inputConfig.logicalTableName !in allLogicalTableNames, E("Duplicate logical table mapped to multiple physical tables: " + inputConfig.logicalTableName));
152+
:- Need(inputConfig.logicalTableName !in allLogicalTableNames, E("Duplicate logical table maped to multipule physical tables: " + inputConfig.logicalTableName));
155153

156154
assert SearchConfigToInfo.ValidSearchConfig(inputConfig.search);
157155
SearchInModifies(config, tableName);
158-
reveal SearchConfigToInfo.ValidSharedCache();
159156
var searchR := SearchConfigToInfo.Convert(inputConfig);
160157
var search :- searchR.MapFailure(e => AwsCryptographyDbEncryptionSdkDynamoDb(e));
161158
assert search.None? || search.value.ValidState();

‎DynamoDbEncryption/dafny/StructuredEncryption/src/Index.dfy

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
include "AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations.dfy"
55

6-
module
7-
{:extern "software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny" }
8-
StructuredEncryption refines AbstractAwsCryptographyDbEncryptionSdkStructuredEncryptionService
6+
module {:extern "software.amazon.cryptography.dbencryptionsdk.structuredencryption.internaldafny" } StructuredEncryption
7+
refines AbstractAwsCryptographyDbEncryptionSdkStructuredEncryptionService
98
{
109

1110
import Operations = AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations

0 commit comments

Comments
 (0)
Please sign in to comment.