Swiftpack.co - Package - highmobility/hm-crypto-kit-swift

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.

Framework Usage

For iOS, it's recommended to build the universal framework - thus enabling running on a simulator as well.
There's an 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.

Parser Usage

Simply execute ./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...



Stars: 0
Help us keep the lights on


Used By

Total: 0


1.1.1 - Sep 27, 2018

Proper Xcode 10, Swift 4.2 release.

1.1.0 - Aug 21, 2018

Updated to Swift 4.2

1.0.3 - May 29, 2018

Fixed HMAC and signature message padding when the message is an exact multiple of 64.

1.0.2 - Apr 12, 2018

Fixed invalid bundle-identifier and bitcode problems.

1.0.1 - Apr 3, 2018

Added CommonCrypto framework for easy access (when not using SPM to build this framework).