From ee868b033499508db2605125a7909084026f25d1 Mon Sep 17 00:00:00 2001 From: Ritvik Kapila Date: Fri, 13 Dec 2024 20:42:25 -0800 Subject: [PATCH] format --- .../DynamoDbEncryption/src/SearchInfo.dfy | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/DynamoDbEncryption/dafny/DynamoDbEncryption/src/SearchInfo.dfy b/DynamoDbEncryption/dafny/DynamoDbEncryption/src/SearchInfo.dfy index f37319956..da328b980 100644 --- a/DynamoDbEncryption/dafny/DynamoDbEncryption/src/SearchInfo.dfy +++ b/DynamoDbEncryption/dafny/DynamoDbEncryption/src/SearchInfo.dfy @@ -245,19 +245,19 @@ module SearchableEncryptionInfo { //# If a [cache entry](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#cache-entry) //# exists, get beacon key MUST return the [entry materials](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#materials). && (cacheOutput.Success? && cacheEntryWithinLimits( - creationTime := cacheOutput.value.creationTime, - now := now, - ttlSeconds := cacheTTL - ) ==> + creationTime := cacheOutput.value.creationTime, + now := now, + ttlSeconds := cacheTTL + ) ==> && cacheOutput.value.materials.BeaconKey? && cacheOutput.value.materials.BeaconKey.hmacKeys.Some? && output.value == cacheOutput.value.materials.BeaconKey.hmacKeys.value) && (cacheOutput.Failure? || !cacheEntryWithinLimits( - creationTime := cacheOutput.value.creationTime, - now := now, - ttlSeconds := cacheTTL - ) ==> + creationTime := cacheOutput.value.creationTime, + now := now, + ttlSeconds := cacheTTL + ) ==> && var oldGetHistory := old(store.History.GetBeaconKey); && var newGetHistory := store.History.GetBeaconKey; && |newGetHistory| == |oldGetHistory|+1 @@ -333,10 +333,10 @@ module SearchableEncryptionInfo { var keyMap :- getAllKeys(stdNames, key.value); var beaconKeyMaterials := rawBeaconKeyMaterials.beaconKeyMaterials.(beaconKey := None, hmacKeys := Some(keyMap)); - //= specification/searchable-encryption/search-config.md#get-beacon-key-materials - //# These materials MUST be put into the associated [Key Store Cache](#key-store-cache) - //# with an [Expiry Time](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#expiry-time) - //# equal to now + configured [cacheTTL](#cachettl). + //= specification/searchable-encryption/search-config.md#get-beacon-key-materials + //# These materials MUST be put into the associated [Key Store Cache](#key-store-cache) + //# with an [Expiry Time](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#expiry-time) + //# equal to now + configured [cacheTTL](#cachettl). :- expect Need( (now as int + cacheTTL as int) < UInt.INT64_MAX_LIMIT, MP.AwsCryptographicMaterialProvidersException(message := "INT64 Overflow when putting cache entry.")