Skip to content

Commit 453f0fa

Browse files
committed
m
1 parent ccb525d commit 453f0fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DynamoDbEncryption/dafny/DynamoDbEncryption/src/SearchInfo.dfy

+1-3
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,6 @@ module SearchableEncryptionInfo {
242242
&& var cacheInput := Seq.Last(newHistory).input;
243243
&& var cacheOutput := Seq.Last(newHistory).output;
244244
&& UTF8.Encode(keyId).Success?
245-
// This is no longer true since we're taking a SHA384 of the identifier
246-
// && cacheInput.identifier == RESOURCE_ID_HIERARCHICAL_KEYRING + NULL_BYTE + SCOPE_ID_SEARCHABLE_ENCRYPTION + NULL_BYTE + partitionIdBytes + NULL_BYTE + logicalKeyStoreNameBytes + NULL_BYTE + UTF8.Encode(keyId).value
247245

248246
//= specification/searchable-encryption/search-config.md#get-beacon-key-materials
249247
//= type=implication
@@ -365,7 +363,7 @@ module SearchableEncryptionInfo {
365363
//# with an [Expiry Time](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#expiry-time)
366364
//# equal to now + configured [cacheTTL](#cachettl).
367365
var putCacheEntryInput:= MP.PutCacheEntryInput(
368-
identifier := identifier,
366+
identifier := cacheDigest,
369367
materials := MP.Materials.BeaconKey(beaconKeyMaterials),
370368
creationTime := now,
371369
expiryTime := now + cacheTTL,

0 commit comments

Comments
 (0)