What is in this repository
HMCryptoKit source code in Swift, that can be made into a framework by
swift build (macOS and Linux only), or through Xcode. Using the latter allows additionally to build for iOS, tvOS or watchOS.
In addition, if using this as a dependency with Swift Package Manager, the suitable architecture is handled by Xcode.
Lastly, there's a command-line tool for executing cryptographic commands related to High-Mobility's system.
For iOS, it's recommended to build the universal framework - thus enabling running on a simulator as well.
AppStoreCompatible.sh script for thinning the framework before submission to iTC.
For macOS and Linux, executing
swift build and using the product is recommended (use the
--show-bin-path option to get the output path).
For other Apple platforms, the universal framework can be made with
lipo from Xcode's simulator and device products. When creating a universal one, the module maps need to be copied as well.
./HMCryptoKitCLT [input] on the command-line.
Input must be in hex.
The tool outputs data if the inputs were suitable, an error is returned otherwise.
-h, --help: Print the help for a command
-d, --dev: Output hexadecimal array: 0xA1, 0xB2, 0xC3...
Help us keep the lights on
1.2.3 - Nov 27, 2018
Refactored the signature methods (jwt and regular) to a single one, with an added optional parameter padded (defaults to true – as was before).
1.2.2 - Nov 22, 2018
Made SHA256 method public.
Added JWT message signing method (ES256).
1.2.1 - Nov 14, 2018
1.2.0 - Nov 6, 2018
Renamed ECKey to HMECKey.
1.1.1 - Sep 27, 2018
Proper Xcode 10, Swift 4.2 release.