Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 1.21 KB

README.md

File metadata and controls

32 lines (18 loc) · 1.21 KB

Secure Remote Password (SRP) for Swift

SRP6 for Swift. API designed similar to the Python package https://pypi.python.org/pypi/srp. For usage, either see the Python package, or the tests.

Prerequisites

This package uses BignumGMP, which, in turn uses libgmp. Therefore, prior to compiling, you need to have a copy of libgmp installed for your operating system.

Linux

For apt-based Linux distributions (such as Debian or Ubuntu), you need to install the libgmp-dev package first:

sudo apt install libgmp-dev

macOS

Install gmp via Homebrew:

brew install gmp

Compiling and Testing

This library uses the Swift Package Manager. To build and test use:

swift build  -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib
swift test   -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib

Limitations

At the moment, only a small number of BigInt operations corresponding to the libgmp mpz type are implemented.