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 e5bc34b

Browse files
committedApr 11, 2024
cleanup
1 parent 4b31c89 commit e5bc34b

File tree

8 files changed

+3041
-3038
lines changed

8 files changed

+3041
-3038
lines changed
 

‎DynamoDbEncryption/dafny/DynamoDbEncryption/Model/AwsCryptographyDbEncryptionSdkDynamoDbTypes.dfy

Lines changed: 531 additions & 531 deletions
Large diffs are not rendered by default.

‎DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/Model/AwsCryptographyDbEncryptionSdkDynamoDbTransformsTypes.dfy

Lines changed: 1736 additions & 1736 deletions
Large diffs are not rendered by default.

‎DynamoDbEncryption/dafny/DynamoDbItemEncryptor/Model/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorTypes.dfy

Lines changed: 298 additions & 298 deletions
Large diffs are not rendered by default.

‎DynamoDbEncryption/dafny/StructuredEncryption/Model/AwsCryptographyDbEncryptionSdkStructuredEncryptionTypes.dfy

Lines changed: 462 additions & 462 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ module AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations refines Abst
384384
// invariant forall k <- fieldMap :: fieldMap[k] in record
385385
{
386386
var utf8Value :- UTF8.Encode(ATTR_PREFIX + Paths.PathToString(fields[i].key)).MapFailure(e =>E(e));
387-
// TODO - check for duplicates
387+
// To Be Done - check for duplicates
388388
fieldMap := fieldMap[utf8Value := fields[i].key];
389389
}
390390
var keys : seq<UTF8.ValidUTF8Bytes> := SortedSets.ComputeSetToOrderedSequence2(fieldMap.Keys, ByteLess);
@@ -853,7 +853,7 @@ module AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations refines Abst
853853
:- NeedBinary(encRecord, FooterPath);
854854
:- Need(exists x :: (x in encRecord && x.action == SIGN), E("At least one Authenticate Action must be SIGN"));
855855

856-
// TODO - no longer need NeedBinary
856+
// To Be Done - no longer need NeedBinary
857857
var headerSerialized :- GetBinary(encRecord, HeaderPath);
858858
var footerSerialized :- GetBinary(encRecord, FooterPath);
859859
//= specification/structured-encryption/decrypt-structure.md#parse-the-header
@@ -919,7 +919,7 @@ module AwsCryptographyDbEncryptionSdkStructuredEncryptionOperations refines Abst
919919
// and the key-value pairs in the [Encryption Context parsed from the header](./header.md#encryption-context).
920920
// - Algorithm Suite ID: The algorithm suite [indicated by the Message Format Flavor](./header.md#format-flavor)
921921
// parsed in the header.
922-
// - Encrypted Data Keys: The [Encrypted Data Keys parsed from the header](./header.md#encrypted-data-keys).
922+
// - Encrypted Data Keys: The [Encrypted Data Keys parsed from the header](./header.md#encrypted-data-keys).
923923

924924
var matR := cmm.DecryptMaterials(
925925
CMP.DecryptMaterialsInput (

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module StructuredEncryptionHeader {
5757
type Legend = x : seq<LegendByte> | |x| < UINT16_LIMIT
5858
type CMPUtf8Bytes = x : CMP.Utf8Bytes | |x| < UINT16_LIMIT
5959

60-
predicate method IsVersion2Schema(data : CanonCryptoList)
60+
predicate method IsVersion2Schema(data : CanonCryptoList)
6161
{
6262
exists x <- data :: x.action == SIGN_AND_INCLUDE_IN_ENCRYPTION_CONTEXT
6363
}

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
include "../Model/AwsCryptographyDbEncryptionSdkStructuredEncryptionTypes.dfy"
25
include "Util.dfy"
36

47
module SortCanon {
58
export provides
6-
AuthSort,
7-
CryptoSort,
8-
AuthBelow,
9-
CryptoBelow,
10-
StructuredEncryptionUtil,
11-
Relations
9+
AuthSort,
10+
CryptoSort,
11+
AuthBelow,
12+
CryptoBelow,
13+
StructuredEncryptionUtil,
14+
Relations
1215

1316
import opened Wrappers
1417
import opened StandardLibrary

‎DynamoDbEncryption/dafny/StructuredEncryption/test/Header.dfy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module TestHeader {
170170
expect legend == [ENCRYPT_AND_SIGN_LEGEND, SIGN_ONLY_LEGEND, ENCRYPT_AND_SIGN_LEGEND, SIGN_ONLY_LEGEND];
171171
}
172172

173-
method {:test} {:vcs_split_on_every_assert} TestSchemaOrderLength2() {
173+
method {:test} {:vcs_split_on_every_assert} TestSchemaOrderLength2() {
174174
var schemaMap : CryptoList := [
175175
MakeCrypto("aa", ENCRYPT_AND_SIGN),
176176
MakeCrypto("zzz", ENCRYPT_AND_SIGN),

0 commit comments

Comments
 (0)
Please sign in to comment.