Skip to content

Commit a902d34

Browse files
authored
Remove Modulus snippet and ModularArithmetic export (#216)
1 parent 57296c6 commit a902d34

File tree

9 files changed

+9
-38
lines changed

9 files changed

+9
-38
lines changed

Snippets/HomomorphicEncryption/ModulusSnippet.swift

Lines changed: 0 additions & 23 deletions
This file was deleted.

Sources/HomomorphicEncryption/DoubleWidthUInt.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
// * Restrict `Base` to unsigned integers only.
2727
// * Rename `DoubleWidth` to `DoubleWidthUInt`.
2828

29+
import ModularArithmetic
30+
2931
/// A fixed-width integer that has twice the bit width of its base type.
3032
///
3133
/// You can use the `DoubleWidthUInt` type to continue calculations with the result

Sources/HomomorphicEncryption/Exports.swift

Lines changed: 0 additions & 15 deletions
This file was deleted.

Sources/HomomorphicEncryption/Util.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
import ModularArithmetic
16+
1517
extension Sequence where Element: Hashable {
1618
@inlinable
1719
func allUnique() -> Bool {

Sources/TestUtilities/HeApiTestUtils.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import HomomorphicEncryption
16+
import ModularArithmetic
1617
import Testing
1718

1819
/// A collection of helpers for HeScheme level API tests.

Sources/TestUtilities/PirUtilities/ExpansionTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import HomomorphicEncryption
16+
import ModularArithmetic
1617
import PrivateInformationRetrieval
1718
import Testing
1819

Sources/TestUtilities/PnnsUtilities/CiphertextMatrixTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import HomomorphicEncryption
16+
import ModularArithmetic
1617
import PrivateNearestNeighborSearch
1718
import Testing
1819

Sources/TestUtilities/PnnsUtilities/MatrixMultiplicationTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import HomomorphicEncryption
16+
import ModularArithmetic
1617
import PrivateNearestNeighborSearch
1718
import Testing
1819

Sources/TestUtilities/PnnsUtilities/PlaintextMatrixTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import HomomorphicEncryption
16+
import ModularArithmetic
1617
import PrivateNearestNeighborSearch
1718
import Testing
1819

0 commit comments

Comments
 (0)