Skip to content

Commit ca446e3

Browse files
committed
fix
1 parent 320de24 commit ca446e3

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

DynamoDbEncryption/dafny/DynamoDbEncryption/src/ConfigToInfo.dfy

+6-4
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,12 @@ module SearchConfigToInfo {
146146
var mpl :- mplR.MapFailure(e => AwsCryptographyMaterialProviders(e));
147147

148148
//= specification/searchable-encryption/search-config.md#key-store-cache
149-
//# For a [Single Key Store](#single-key-store-initialization) the [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
150-
//# MUST be 1
151-
//# For a [Multi Key Store](#multi-key-store-initialization) the [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
152-
//# MUST be key store's max cache size.
149+
//# For a Beacon Key Source a [CMC](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md)
150+
//# MUST be created.
151+
//# For a [Single Key Store](#single-key-store-initialization), either the customer provides a cache, or we create a cache that MUST have [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
152+
//# equal to 1.
153+
//# For a [Multi Key Store](#multi-key-store-initialization), either the customer provides a cache, or we create a cache that MUST have [Entry Capacity](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/cryptographic-materials-cache.md#entry-capacity)
154+
//# equal to 1000.
153155
var cacheType : MPT.CacheType :=
154156
if config.multi? then
155157
if config.multi.cache.Some? then

DynamoDbEncryption/dafny/DynamoDbEncryption/src/SearchInfo.dfy

+4-4
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,12 @@ module SearchableEncryptionInfo {
330330
}
331331

332332
//= specification/searchable-encryption/search-config.md#get-beacon-key-materials
333-
//# If using a `Shared` cache across multiple Beacon Key Sources,
334-
//# different Beacon Key Sources having the same `branchKey` can have different TTLs.
335-
//# In such a case, the expiry time in the cache is set according to the Beacon Key Source that populated the cache.
333+
//# If using a `Shared` cache across multiple [Beacon Key Sources](#beacon-key-source),
334+
//# different [Beacon Key Sources](#beacon-key-source) having the same `branchKey` can have different TTLs.
335+
//# In such a case, the expiry time in the cache is set according to the [Beacon Key Source](#beacon-key-source) that populated the cache.
336336
//# There MUST be a check (cacheEntryWithinLimits) to make sure that for the cache entry found, who's TTL has NOT expired,
337337
//# `time.now() - cacheEntryCreationTime <= ttlSeconds` is true and
338-
//# valid for TTL of the Beacon Key Source getting the cache entry.
338+
//# valid for TTL of the [Beacon Key Source](#beacon-key-source) getting the cache entry.
339339
//# If this is NOT true, then we MUST treat the cache entry as expired.
340340
if getCacheOutput.Failure? || !cacheEntryWithinLimits(
341341
creationTime := getCacheOutput.value.creationTime,

specification/searchable-encryption/search-config.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,9 @@ while providing a Shared Cache to the [Beacon Key Source](#beacon-key-source).
407407

408408
The resource suffixes for the Searchable Encryption is as follows:
409409

410-
```
411-
logicalKeyStoreName + NULL_BYTE + UTF8Encode(branchKeyId)
412-
```
410+
```
411+
logicalKeyStoreName + NULL_BYTE + UTF8Encode(branchKeyId)
412+
```
413413

414414
The aforementioned 4 definitions ([Resource Identifier](#resource-identifier),
415415
[Scope Identifier](#scope-identifier), [Partition ID](#partition-id-1), and

0 commit comments

Comments
 (0)