Skip to content

Commit 0b242da

Browse files
committed
m
1 parent 86b328d commit 0b242da

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

DynamoDbEncryption/dafny/DynamoDbEncryption/src/Beacon.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module BaseBeacon {
149149

150150
//= specification/searchable-encryption/beacons.md#beacon-constraint
151151
//# If an item is being written or queried as partition `X`, but the [standard beacon](#standard-beacon-initialization) is constrained to only `N` partitions,
152-
//# then the partition used to [encode](#partition-beacon-encoding) the beacon MUST be `X % N`, where `%` is the modulo or remainder operation.
152+
//# then the partition used to [encode](#beacon-partition-encoding) the beacon MUST be `X % N`, where `%` is the modulo or remainder operation.
153153
function method constrained_partition(partition : PartitionNumber) : PartitionBytes
154154
{
155155
if numberOfPartitions == 0 || partition == 0 then
@@ -169,7 +169,7 @@ module BaseBeacon {
169169
&& |ret.value| == (((length as uint8) + 3) / 4) as nat
170170
{
171171
//= specification/searchable-encryption/beacons.md#value-for-a-non-set-standard-beacon
172-
//# - The serialized form MUST be augmented as per [partition beacon encoding](#partition-beacon-encoding).
172+
//# - The serialized form MUST be augmented as per [beacon partition encoding](#beacon-partition-encoding).
173173
base.hash(val, key, length, constrained_partition(partition))
174174
}
175175

DynamoDbEncryption/dafny/DynamoDbEncryption/src/Util.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ module DynamoDbEncryptionUtil {
9696

9797
function method PartitionNumberToBytes(x : PartitionNumber) : PartitionBytes
9898
{
99-
//= specification/searchable-encryption/beacons.md#partition-beacon-encoding
99+
//= specification/searchable-encryption/beacons.md#beacon-partition-encoding
100100
//# If this number is zero, then the input sequence of bytes MUST be returned unchanged.
101101
if x == 0 then
102102
[]
103-
//= specification/searchable-encryption/beacons.md#partition-beacon-encoding
103+
//= specification/searchable-encryption/beacons.md#beacon-partition-encoding
104104
//# Otherwise, a single byte with a value equal to this calculated partition number, MUST be appended to the input sequence of bytes.
105105
else
106106
[x as uint8]

specification/searchable-encryption/beacons.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ These parts may come from these locally defined parts lists, or from the
413413
A beacon may be constrained to fewer partitions than is specified in the [beacon version](search-config.md#beacon-version-initialization).
414414

415415
If an item is being written or queried as partition `X`, but the [standard beacon](#standard-beacon-initialization) is constrained to only `N` partitions,
416-
then the partition used to [encode](#partition-beacon-encoding) the beacon MUST be `X % N`, where `%` is the modulo or remainder operation.
416+
then the partition used to [encode](#beacon-partition-encoding) the beacon MUST be `X % N`, where `%` is the modulo or remainder operation.
417417

418418
Examples:
419419

@@ -491,7 +491,7 @@ Both standard and compound beacons define two operations
491491

492492
- This operation MUST convert the attribute value of the associated field to
493493
a sequence of bytes, as per [attribute serialization](../dynamodb-encryption-client/ddb-attribute-serialization.md).
494-
- The serialized form MUST be augmented as per [beacon partition encoding](#partition-beacon-encoding).
494+
- The serialized form MUST be augmented as per [beacon partition encoding](#beacon-partition-encoding).
495495
- This operation MUST return the [basicHash](#basichash) of the resulting bytes and the configured [beacon length](#beacon-length).
496496
- The returned
497497
[AttributeValue](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html)

0 commit comments

Comments
 (0)