Coder Social home page Coder Social logo

swiftseal's Introduction

Swift Seal

An Objective-C++ wrapper around Microsoft Seal with ergonomic Swift bindings. The framework prodvides out of the box Swift functionality to perform homomorphic encryptions and perform arithmetic operations on encoded data. It is written as a swift package and currently supported on iOS.

Table of Contents

Requirements

The framework has no minimum version.

Getting Started

Installation

Checkout the Microsoft Seal libaray on the contrib branch

git clone -b contrib https://github.com/microsoft/SEAL.git
cd SEAL
make .
cmake . -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug

This will build SEAL without ZLIB and in Debug mode and generate PKGConfig file.

Then install AppleSeal via SPM. Create a new Xcode project and navigate to File > Swift Packages > Add Package Dependency. Enter the url https://github.com/mmroz/AppleSeal.git and tap Next and choose the master branch.

Examples

AppleSeal has a number of examples that are used to show basic usage of Swift Seal. The Examples in AppleSeal. These are meant to replicate the Examples in SEAL

Components

ASLSchemeType

Supports BFV and CKKS encoding types through ASLSchemeTypeBFV and ASLSchemeTypeCKKS, respectively.

ASLEncryptionParameters

The parameters used for the encryption most importantly polynomialModulus, coefficientModulus and plainModulus.

ASLSealContext

A heavyweight class constructed from the ASLEncryptionParameters.

ASLKeyGenerator

Generates matching secret key and public key also used to construct Galois Keys and Relinearization Keys.

ASLPlainText

Class to store a plaintext element.

ASLCipherText

Class to store a ciphertext element.

ASLBatchEncoder

Provides functionality for CRT batching

ASLCKKSEncoder

Provides functionality for encoding vectors of complex or real numbers into plaintext polynomials to be encrypted and computed on using the CKKS scheme.

ASLIntegerEncoder

Encodes integers into plaintext polynomials that Encryptor can encrypt

ASLEncryptor

Encrypts Plaintext objects into Ciphertext objects.

ASLEvaluator

Provides operations on ciphertexts.

ASLDecryptor

Decrypts Ciphertext objects into Plaintext objects

Learn More

Learn more about Homomorphic Encrytion and Seal

Getting Help

Feel free to open up issues about questions, problems, or ideas. Always looking for more contributions!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.