Skip to content

Commit 25dabc8

Browse files
author
Lucas McDonald
committed
m
1 parent 55873eb commit 25dabc8

File tree

5 files changed

+10
-28
lines changed

5 files changed

+10
-28
lines changed

TestVectors/dafny/DDBEncryption/Model/AwsCryptographyDynamoDbEncryptionTypesWrapped.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
// SPDX-License-Identifier: Apache-2.0
33
// Do not modify this file. This file is machine generated, and any changes to it will be overwritten.
44
include "../../../../submodules/MaterialProviders/StandardLibrary/src/Index.dfy"
5-
// BEGIN MANUAL EDIT
5+
// BEGIN MANUAL EDIT
66
include "../../../../DynamoDbEncryption/dafny/DynamoDbEncryption/src/Index.dfy"
77
include "../../../../DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/src/Index.dfy"
88
include "../../../../submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/dafny/KeyVectors/src/Index.dfy"
9-
// END MANUAL EDIT
9+
// END MANUAL EDIT
1010
abstract module WrappedAbstractAwsCryptographyDynamoDbEncryptionService {
1111
import opened Wrappers
1212
import opened StandardLibrary.UInt

TestVectors/dafny/DDBEncryption/src/CreateWrappedItemEncryptor.dfy

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,8 @@ module {:extern} CreateWrappedItemEncryptor {
1111
import DynamoDbItemEncryptor
1212
import Operations = AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorOperations
1313

14-
// The `ensures` clause is copy-pasted from the DynamoDbItemEncryptor client method's `ensures` clause.
1514
method {:extern} CreateWrappedItemEncryptor(config: ENC.DynamoDbItemEncryptorConfig)
1615
returns (output: Result<ENC.IDynamoDbItemEncryptorClient, ENC.Error>)
17-
// requires config.keyring.Some? ==>
18-
// config.keyring.value.ValidState()
19-
// requires config.cmm.Some? ==>
20-
// config.cmm.value.ValidState()
21-
// requires config.legacyOverride.Some? ==>
22-
// config.legacyOverride.value.encryptor.ValidState()
23-
// modifies if config.keyring.Some? then
24-
// config.keyring.value.Modifies
25-
// else {}
26-
// modifies if config.cmm.Some? then
27-
// config.cmm.value.Modifies
28-
// else {}
29-
// modifies if config.legacyOverride.Some? then
30-
// config.legacyOverride.value.encryptor.Modifies
31-
// else {}
3216
ensures output.Success? ==>
3317
&& output.value is DynamoDbItemEncryptor.DynamoDbItemEncryptorClient
3418
&& fresh(output.value)

TestVectors/dafny/DDBEncryption/src/JsonConfig.dfy

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,6 @@ module {:options "-functionSyntax:4"} JsonConfig {
357357
);
358358
var enc : ENC.IDynamoDbItemEncryptorClient :- expect CreateWrappedItemEncryptor.CreateWrappedItemEncryptor(encryptorConfig);
359359
return Success(enc);
360-
// assert enc is DynamoDbItemEncryptor.DynamoDbItemEncryptorClient;
361-
// var encr := enc as DynamoDbItemEncryptor.DynamoDbItemEncryptorClient;
362-
// return Success(encr);
363360
}
364361

365362
method GetOneTableConfig(name : string, data : JSON, keys: KeyVectors.KeyVectorsClient)

TestVectors/dafny/WrappedDynamoDbItemEncryptor/src/Index.dfy

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
include "../../../../DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src/Index.dfy"
66
include "../Model/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorTypesWrapped.dfy"
77
module {:extern "software.amazon.cryptography.dbencryptionsdk.dynamodb.itemencryptor.internaldafny.wrapped" } WrappedItemEncryptor refines WrappedAbstractAwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorService {
8-
9-
import ComAmazonawsDynamodbTypes
108

11-
import DynamoDbItemEncryptor
9+
import ComAmazonawsDynamodbTypes
1210

13-
function method WrappedDefaultDynamoDbItemEncryptorConfig(): DynamoDbItemEncryptorConfig
14-
{
15-
DynamoDbItemEncryptor.DefaultDynamoDbItemEncryptorConfig()
16-
}
11+
import DynamoDbItemEncryptor
12+
13+
function method WrappedDefaultDynamoDbItemEncryptorConfig(): DynamoDbItemEncryptorConfig
14+
{
15+
DynamoDbItemEncryptor.DefaultDynamoDbItemEncryptorConfig()
16+
}
1717
}

TestVectors/runtimes/rust/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub mod operation;
1414
pub mod types;
1515
pub mod validation;
1616
pub mod intercept;
17+
#[cfg(feature = "wrapped-client")]
1718
pub mod wrapped;
1819

1920
mod standard_library_conversions;

0 commit comments

Comments
 (0)