Skip to content

Commit f77783f

Browse files
authored
fix(dafny): BKS names (#1483)
1 parent d58bedc commit f77783f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

AwsCryptographicMaterialProviders/dafny/AwsCryptographyKeyStore/src/CreateKeys.dfy

+3-3
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,14 @@ module {:options "/functionSyntax:4" } CreateKeys {
359359

360360
// get plaintext data key by calling kms::GenerateDataKey
361361
var activePlaintextMaterial :- KMSKeystoreOperations.GetPlaintextDataKeyViaGenerateDataKey(
362-
branchKeyContext := ecToKMS,
362+
encryptionContext := ecToKMS,
363363
kmsConfiguration := kmsConfiguration,
364364
keyManagerAndStorage := keyManagerAndStorage
365365
);
366366

367367
// get beacon key by calling kms::GenerateDataKey
368368
var beaconPlaintextMaterial :- KMSKeystoreOperations.GetPlaintextDataKeyViaGenerateDataKey(
369-
branchKeyContext := ecToKMS,
369+
encryptionContext := ecToKMS,
370370
kmsConfiguration := kmsConfiguration,
371371
keyManagerAndStorage := keyManagerAndStorage
372372
);
@@ -749,7 +749,7 @@ module {:options "/functionSyntax:4" } CreateKeys {
749749
);
750750

751751
var newActivePlaintextMaterial :- KMSKeystoreOperations.GetPlaintextDataKeyViaGenerateDataKey(
752-
branchKeyContext := ecToKMS,
752+
encryptionContext := ecToKMS,
753753
kmsConfiguration := kmsConfiguration,
754754
keyManagerAndStorage := keyManagerAndStorage
755755
);

AwsCryptographicMaterialProviders/dafny/AwsCryptographyKeyStore/src/KMSKeystoreOperations.dfy

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module {:options "/functionSyntax:4" } KMSKeystoreOperations {
149149
&& KMS.GenerateDataKeyRequest(
150150
KeyId := kmsKeyArn,
151151
NumberOfBytes := Some(32),
152-
EncryptionContext := Some(branchKeyContext),
152+
EncryptionContext := Some(encryptionContext),
153153
GrantTokens := Some(keyManagerAndStorage.keyManagerStrat.kmsSimple.grantTokens)
154154
) == kmsGenerateDataKeyEvent.input
155155
&& kmsGenerateDataKeyEvent.output.Success?
@@ -163,7 +163,7 @@ module {:options "/functionSyntax:4" } KMSKeystoreOperations {
163163
var generateDataKeyInput := KMS.GenerateDataKeyRequest(
164164
KeyId := kmsKeyArn,
165165
NumberOfBytes := Some(32),
166-
EncryptionContext := Some(branchKeyContext),
166+
EncryptionContext := Some(encryptionContext),
167167
GrantTokens := Some(keyManagerAndStorage.keyManagerStrat.kmsSimple.grantTokens)
168168
);
169169

0 commit comments

Comments
 (0)