Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ concurrency:
cancel-in-progress: true
# Keep versions in sync with README
env:
SWIFTLINT_VERSION: 0.59.1
SWIFTFORMAT_VERSION: 0.56.4
SWIFTLINT_VERSION: 0.61.0
SWIFTFORMAT_VERSION: 0.58.3
SWIFT_HOMOMORPHIC_ENCRYPTION_ENABLE_BENCHMARKING: 1
jobs:
soundness:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@ We'd like this package to quickly embrace Swift language and toolchain improveme
## Developing Swift Homomorphic Encryption
### Dependencies
Developing Swift Homomorphic Encryption requires:
* [Nick Lockwood SwiftFormat](https://github.com/nicklockwood/SwiftFormat), 0.56.4
* [Nick Lockwood SwiftFormat](https://github.com/nicklockwood/SwiftFormat), 0.58.3
* [pre-commit](https://pre-commit.com)
* [swift-format](https://github.com/swiftlang/swift-format), 600.0.0
* [swift-protobuf](https://github.com/apple/swift-protobuf), 1.31.1
* [SwiftLint](https://github.com/realm/SwiftLint), 0.59.1
* [SwiftLint](https://github.com/realm/SwiftLint), 0.61.0

### Building
You can build Swift Homomorphic Encryption either via Xcode or via command line in a terminal.
Expand Down
15 changes: 10 additions & 5 deletions Sources/_TestUtilities/PnnsUtilities/PlaintextMatrixTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ extension PrivateNearestNeighborSearchUtil {
#expect(throws: Never.self) { try PlaintextMatrix<Scheme, Coeff>(
dimensions: dims,
packing: packing,
plaintexts: [plaintext, plaintext]) }
plaintexts: [plaintext, plaintext])
}

// Not enough plaintexts
#expect(throws: (any Error).self) { try PlaintextMatrix<Scheme, Coeff>(
dimensions: dims,
packing: packing,
plaintexts: []) }
plaintexts: [])
}
// Plaintexts from different contexts
do {
let diffRlweParams = rlweParams == PredefinedRlweParameters
Expand All @@ -73,7 +75,8 @@ extension PrivateNearestNeighborSearchUtil {
#expect(throws: (any Error).self) { try PlaintextMatrix<Scheme, Coeff>(
dimensions: dims,
packing: packing,
plaintexts: [plaintext, diffPlaintext]) }
plaintexts: [plaintext, diffPlaintext])
}
}
}
for rlweParams in PredefinedRlweParameters.allCases where rlweParams.supportsScalar(Scheme.Scalar.self) {
Expand Down Expand Up @@ -101,7 +104,8 @@ extension PrivateNearestNeighborSearchUtil {
context: context,
dimensions: wrongDims,
packing: packing,
values: values) }
values: values)
}
}
// Too many columns
do {
Expand All @@ -110,7 +114,8 @@ extension PrivateNearestNeighborSearchUtil {
context: context,
dimensions: dims,
packing: packing,
values: values) }
values: values)
}
}
}

Expand Down