@@ -245,19 +245,19 @@ module SearchableEncryptionInfo {
245
245
// # If a [cache entry](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#cache-entry)
246
246
// # exists, get beacon key MUST return the [entry materials](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#materials).
247
247
&& (cacheOutput. Success? && cacheEntryWithinLimits (
248
- creationTime := cacheOutput.value.creationTime,
249
- now := now,
250
- ttlSeconds := cacheTTL
251
- ) ==>
248
+ creationTime := cacheOutput.value.creationTime,
249
+ now := now,
250
+ ttlSeconds := cacheTTL
251
+ ) ==>
252
252
&& cacheOutput. value. materials. BeaconKey?
253
253
&& cacheOutput. value. materials. BeaconKey. hmacKeys. Some?
254
254
&& output. value == cacheOutput. value. materials. BeaconKey. hmacKeys. value)
255
255
256
256
&& (cacheOutput. Failure? || ! cacheEntryWithinLimits (
257
- creationTime := cacheOutput.value.creationTime,
258
- now := now,
259
- ttlSeconds := cacheTTL
260
- ) ==>
257
+ creationTime := cacheOutput.value.creationTime,
258
+ now := now,
259
+ ttlSeconds := cacheTTL
260
+ ) ==>
261
261
&& var oldGetHistory := old (store. History. GetBeaconKey);
262
262
&& var newGetHistory := store. History. GetBeaconKey;
263
263
&& |newGetHistory| == |oldGetHistory|+ 1
@@ -333,10 +333,10 @@ module SearchableEncryptionInfo {
333
333
var keyMap :- getAllKeys (stdNames, key.value);
334
334
var beaconKeyMaterials := rawBeaconKeyMaterials. beaconKeyMaterials. (beaconKey := None, hmacKeys := Some (keyMap));
335
335
336
- // = specification/searchable-encryption/search-config.md#get-beacon-key-materials
337
- // # These materials MUST be put into the associated [Key Store Cache](#key-store-cache)
338
- // # with an [Expiry Time](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#expiry-time)
339
- // # equal to now + configured [cacheTTL](#cachettl).
336
+ // = specification/searchable-encryption/search-config.md#get-beacon-key-materials
337
+ // # These materials MUST be put into the associated [Key Store Cache](#key-store-cache)
338
+ // # with an [Expiry Time](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#expiry-time)
339
+ // # equal to now + configured [cacheTTL](#cachettl).
340
340
:- expect Need (
341
341
(now as int + cacheTTL as int) < UInt. INT64_MAX_LIMIT,
342
342
MP. AwsCryptographicMaterialProvidersException (message := "INT64 Overflow when putting cache entry.")
0 commit comments