The library can be included through either SwiftPM or CocoaPods.
Swift Package manager
Specify the dependency in your
.package(url: "https://github.com/christophhagen/CCurve25519.git", from: "1.0.0")
Specify in your Podfile:
pod 'CCurve25519', :git => 'https://github.com/christophhagen/CCurve25519.git'
In your project, simply:
The C files are taken without alteration from libsignal-protocol-c.
You may find interesting