Skip to content

Commit ea9ff79

Browse files
authored
Update documentation links to 1.0.4 (#200)
1 parent b69ef97 commit ea9ff79

File tree

14 files changed

+56
-56
lines changed

14 files changed

+56
-56
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@ Applications of Swift Homomorphic Encryption include:
88
## Overview
99
Swift Homomorphic Encryption is a collection of libraries and executables.
1010
For more information, refer to documentation for the libraries:
11-
* [HomomorphicEncryptionProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryptionprotobuf)
12-
* [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption)
13-
* [PrivateInformationRetrievalProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privateinformationretrievalprotobuf)
14-
* [PrivateInformationRetrieval](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privateinformationretrieval)
15-
* [PrivateNearestNeighborSearchProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privatenearestneighborsearchprotobuf)
16-
* [PrivateNearestNeighborSearch](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privatenearestneighborsearch)
11+
* [HomomorphicEncryptionProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryptionprotobuf)
12+
* [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption)
13+
* [PrivateInformationRetrievalProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privateinformationretrievalprotobuf)
14+
* [PrivateInformationRetrieval](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privateinformationretrieval)
15+
* [PrivateNearestNeighborSearchProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privatenearestneighborsearchprotobuf)
16+
* [PrivateNearestNeighborSearch](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privatenearestneighborsearch)
1717

1818
and executables:
19-
* [PIRGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirgeneratedatabase)
20-
* [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirprocessdatabase)
21-
* [PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirsharddatabase)
22-
* [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pnnsgeneratedatabase)
23-
* [PNNSProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pnnsprocessdatabase)
19+
* [PIRGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirgeneratedatabase)
20+
* [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirprocessdatabase)
21+
* [PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirsharddatabase)
22+
* [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pnnsgeneratedatabase)
23+
* [PNNSProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pnnsprocessdatabase)
2424

2525
The documentation is hosted on the [Swift Package Index](https://swiftpackageindex.com/apple/swift-homomorphic-encryption).
2626

Sources/HomomorphicEncryption/HomomorphicEncryption.docc/HomomorphicEncryption.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ Homomorphic Encryption (HE) enables computation on encrypted data.
55
## Overview
66
Swift Homomorphic Encryption is a collection of libraries and executables implementing homomorphic encryption (HE) and applications, such as private information retrieval (PIR).
77
For more information, refer to documentation for the libraries:
8-
* [HomomorphicEncryptionProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryptionprotobuf)
9-
* [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption)
10-
* [PrivateInformationRetrievalProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privateinformationretrievalprotobuf)
11-
* [PrivateInformationRetrieval](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privateinformationretrieval)
12-
* [PrivateNearestNeighborSearchProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privatenearestneighborsearchprotobuf)
13-
* [PrivateNearestNeighborSearch](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privatenearestneighborsearch)
8+
* [HomomorphicEncryptionProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryptionprotobuf)
9+
* [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption)
10+
* [PrivateInformationRetrievalProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privateinformationretrievalprotobuf)
11+
* [PrivateInformationRetrieval](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privateinformationretrieval)
12+
* [PrivateNearestNeighborSearchProtobuf](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privatenearestneighborsearchprotobuf)
13+
* [PrivateNearestNeighborSearch](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privatenearestneighborsearch)
1414

1515
and executables:
16-
* [PIRGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirgeneratedatabase)
17-
* [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirprocessdatabase)
18-
* [PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirsharddatabase)
19-
* [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pnnsgeneratedatabase)
20-
* [PNNSProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pnnsprocessdatabase)
16+
* [PIRGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirgeneratedatabase)
17+
* [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirprocessdatabase)
18+
* [PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirsharddatabase)
19+
* [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pnnsgeneratedatabase)
20+
* [PNNSProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pnnsprocessdatabase)
2121

2222
### Background
2323
Swift Homomorphic Encryption implements a special form of cryptography called homomorphic encryption (HE).
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# ``HomomorphicEncryptionProtobuf``
22

3-
Protocol buffer support for [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption)
3+
Protocol buffer support for [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption)
44

55
## Overview
6-
`HomomorphicEncryptionProtobuf` contains supports for using [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption) with [protocol buffers](https://protobuf.dev/), commonly referred to as `protobuf`.
6+
`HomomorphicEncryptionProtobuf` contains supports for using [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption) with [protocol buffers](https://protobuf.dev/), commonly referred to as `protobuf`.
77
This module contains:
88
* the generated Swift code to use the protobuf types.
9-
* conversion between protobuf types and [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption) runtime types.
9+
* conversion between protobuf types and [HomomorphicEncryption](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption) runtime types.
1010

1111
The protobuf schemas are defined at [https://github.com/apple/swift-homomorphic-encryption-protobuf](https://github.com/apple/swift-homomorphic-encryption-protobuf).

Sources/PIRGenerateDatabase/PIRGenerateDatabase.docc/PIRGenerateDatabase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PIRGenerateDatabase \
2929

3030
This will generate a database of 100 rows, with keywords 0 to 99, and each value repeating the keyword for 10 to 20 bytes.
3131

32-
The database is a serialized [Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privateinformationretrievalprotobuf/apple_swifthomomorphicencryption_pir_v1_keyworddatabase).
32+
The database is a serialized [Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privateinformationretrievalprotobuf/apple_swifthomomorphicencryption_pir_v1_keyworddatabase).
3333
For readability, the `.txtpb` extension ensures the output database will be saved in protocol buffer text format.
3434

3535
> Note: For a more compact format, use the `.binpb` extension to save the database in protocol buffer binary format.

Sources/PIRProcessDatabase/PIRProcessDatabase.docc/PIRProcessDatabase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ Run `PIRProcessDatabase --help` to get a sample JSON configuration.
2626
### Required Configuration Parameters
2727

2828
There are four required parameters:
29-
1. `rlweParameters` is one of the [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption/predefinedrlweparameters),
29+
1. `rlweParameters` is one of the [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption/predefinedrlweparameters),
3030
e.g., `n_4096_logq_27_28_28_logt_5`.
3131
2. `inputDatabase` is the path to the unprocessed input database. It must be a
32-
serialized [Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privateinformationretrievalprotobuf/apple_swifthomomorphicencryption_pir_v1_keyworddatabase).
32+
serialized [Apple_SwiftHomomorphicEncryption_Pir_V1_KeywordDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privateinformationretrievalprotobuf/apple_swifthomomorphicencryption_pir_v1_keyworddatabase).
3333

3434
> Note: The `PIRGenerateDatabase` binary can be used to generate a sample database.
3535
@@ -51,7 +51,7 @@ A minimal configuration sample is
5151
}
5252
```
5353
The only required parameter variable which affects performance is
54-
`rlweParameters`. These parameters are picked from a set of [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption/predefinedrlweparameters).
54+
`rlweParameters`. These parameters are picked from a set of [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption/predefinedrlweparameters).
5555
RLWE parameters are defined by ring dimension `n`, a ciphertext modulus bit
5656
length `log q`, and plaintext modulus bit length, `log t`.
5757

Sources/PIRProcessDatabase/PIRProcessDatabase.docc/ReusingPirParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ There are a few ways to find a good `bucketCount`:
8484
If the processing throws a `PirError.failedToConstructCuckooTable` or logs `Failed to construct Cuckoo table`, this is an indication the chosen bucket count was too small.
8585
Choose larger `bucketCounts` until the processing works.
8686

87-
* Add a callback to [ProcessKeywordDatabase.processShard](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/privateinformationretrieval/processkeyworddatabase/processshard(shard:with:)).
87+
* Add a callback to [ProcessKeywordDatabase.processShard](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/privateinformationretrieval/processkeyworddatabase/processshard(shard:with:)).
8888
This callback can be used to report the bucketCount after the cuckoo table was created.
8989
A sample callback is
9090
```swift

Sources/PIRShardDatabase/PIRShardDatabase.docc/PIRShardDatabase.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ Keyword PIR database sharding
44

55
## Overview
66

7-
[PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirsharddatabase) is an executable which divides a database into disjoint shards.
8-
Each resulting shard is suitable for processing with the [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirprocessdatabase) executable.
7+
[PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirsharddatabase) is an executable which divides a database into disjoint shards.
8+
Each resulting shard is suitable for processing with the [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirprocessdatabase) executable.
99

1010
`PIRShardDatabase` supports two sharding settings:
1111
* `shardCount` randomly shards the database using the specified of shards.
1212
* `entryCountPerShard` shards the database using enough shards such that the average shard contains the specified number of entries.
1313

1414
### Requirements
15-
Build the [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirprocessdatabase) executable by running:
15+
Build the [PIRProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirprocessdatabase) executable by running:
1616
```sh
1717
swift build -c release --target PIRProcessDatabase
1818
```
1919
The binary will be generated in `.build/release/PIRProcessDatabase`.
2020

2121
For the example below, you'll also need to install the
22-
[PIRGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirgeneratedatabse)
22+
[PIRGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirgeneratedatabse)
2323
executable in a similar manner as
24-
[PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pirsharddatabase).
24+
[PIRShardDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pirsharddatabase).
2525

2626
### Example
2727

Sources/PNNSGenerateDatabase/PNNSGenerateDatabase.docc/PNNSGenerateDatabase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Private Nearest Neighbor Search database generation
55
## Overview
66

77
`PNNSGenerateDatabase` is an executable which generates a sample database for testing.
8-
The resulting database can be processed with the [PNNSProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pnnsprocessdatabase) executable.
8+
The resulting database can be processed with the [PNNSProcessDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pnnsprocessdatabase) executable.
99

1010
### Requirements
1111
First ensure sure that the `~/.swiftpm/bin` directory is on your `$PATH`.

Sources/PNNSProcessDatabase/PNNSProcessDatabase.docc/PNNSProcessDatabase.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ Run `PNNSProcessDatabase --help` to get a sample JSON configuration.
3232
#### Required Configuration Parameters
3333

3434
There are three required parameters:
35-
1. `rlweParameters` is one of the [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption/predefinedrlweparameters),
35+
1. `rlweParameters` is one of the [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption/predefinedrlweparameters),
3636
e.g., `n_8192_logq_3x55_logt_30`.
3737
2. `inputDatabase` is the path to the unprocessed input database. It must be a
3838
serialized `Apple_SwiftHomomorphicEncryption_Pnns_V1_Database`.
3939

40-
> Note: The [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pnnsgeneratedatabase) binary can be used to generate a sample database.
40+
> Note: The [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pnnsgeneratedatabase) binary can be used to generate a sample database.
4141
4242
3. `outputDatabase` is the path to where the processed database will be
4343
written. This string should have extension either `.txtpb` or `.binpb`.
@@ -51,8 +51,8 @@ A minimal configuration sample is
5151
}
5252
```
5353
The only required parameter variable which affects performance is
54-
`rlweParameters`. These parameters are picked from a set of [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption/predefinedrlweparameters).
55-
See the [EncryptionParameters snippet]( https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/homomorphicencryption/usingswifthomomorphicencryption#Encryption-Parameters) for more information on encryption parameters.
54+
`rlweParameters`. These parameters are picked from a set of [PredefinedRlweParameters](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption/predefinedrlweparameters).
55+
See the [EncryptionParameters snippet]( https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/homomorphicencryption/usingswifthomomorphicencryption#Encryption-Parameters) for more information on encryption parameters.
5656

5757
For `batchSize: 1`, `n_4096_logq_27_28_28_logt_16` may be a good choice.
5858
For larger batch sizes, `n_8192_logq_3x55_logt_30` may be a good choice.
@@ -80,7 +80,7 @@ For each trial, a query is checked for correctness.
8080

8181
### Example
8282

83-
Our example relies on the [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.3/documentation/pnnsgeneratedatabase) executable.
83+
Our example relies on the [PNNSGenerateDatabase](https://swiftpackageindex.com/apple/swift-homomorphic-encryption/1.0.4/documentation/pnnsgeneratedatabase) executable.
8484
To install it, run
8585
```sh
8686
swift package experimental-install -c release --product PNNSGenerateDatabase

0 commit comments

Comments
 (0)