You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DynamoDbEncryption/dafny/DynamoDbEncryptionTransforms/Model/AwsCryptographyDbEncryptionSdkDynamoDbTransformsTypes.dfy
-1
Original file line number
Diff line number
Diff line change
@@ -741,7 +741,6 @@ include "../../../../submodules/MaterialProviders/StandardLibrary/src/Index.dfy"
Copy file name to clipboardExpand all lines: DynamoDbEncryption/dafny/DynamoDbItemEncryptor/test/DynamoDBItemEncryptorTest.dfy
+18-1
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,15 @@
2
2
// SPDX-License-Identifier: Apache-2.0
3
3
include "../../DynamoDbEncryption/src/Index.dfy"
4
4
include "../../DynamoDbEncryptionTransforms/test/TestFixtures.dfy"
5
-
5
+
include "../../../../submodules/MaterialProviders/AwsCryptographicMaterialProviders/dafny/AwsCryptographicMaterialProviders/src/KeyWrapping/EdkWrapping.dfy"
6
+
include "../../../../submodules/MaterialProviders/StandardLibrary/src/UUID.dfy"
var providerWrappedMaterial := EdkWrapping.GetProviderWrappedMaterial(parsedHeader.value.encryptedDataKeys[0].ciphertext, AlgorithmSuites.DBE_ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_ECDSA_P384_SYMSIG_HMAC_SHA384).Extract();
454
+
455
+
var EDK_CIPHERTEXT_BRANCH_KEY_VERSION_INDEX := 12 + 16;
456
+
var EDK_CIPHERTEXT_VERSION_INDEX := EDK_CIPHERTEXT_BRANCH_KEY_VERSION_INDEX + 16;
457
+
458
+
var branchKeyVersionUuid := providerWrappedMaterial[EDK_CIPHERTEXT_BRANCH_KEY_VERSION_INDEX .. EDK_CIPHERTEXT_VERSION_INDEX];
459
+
var version := UUID.FromByteArray(branchKeyVersionUuid).Extract();
Copy file name to clipboardExpand all lines: DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/DynamoDbEncryption.java
Result<software.amazon.cryptography.dbencryptionsdk.dynamodb.internaldafny.types.GetEncryptedDataKeyDescriptionOutput, Error> result = this._impl.GetEncryptedDataKeyDescription(dafnyValue);
Copy file name to clipboardExpand all lines: DynamoDbEncryption/runtimes/java/src/main/smithy-generated/software/amazon/cryptography/dbencryptionsdk/dynamodb/ToDafny.java
0 commit comments