Giter Club home page Giter Club logo

zerokit-client-native-crypto's Introduction

Notice: This project is discontinued and no longer maintained nor supported by Tresorit. This repository only exists for archival purposes.


ZeroKit client native cryptographic library

Build Status

This library provides native cryptographic primitives for ZeroKit clients, utilizing OpenSSL's platform-specific optimized assembly implementations where possible. Currently supported platforms are iOS (arm, arm64, x86, x64) and Android (arm, arm64, x86).

Building

Prerequisites

  • git
  • GNU make
  • Perl 5
  • Android NDK (Android)
  • Xcode (iOS)

Clone the repository and its submodules: git clone https://github.com/tresorit/ZeroKit-Client-Native-Crypto.git --recursive

Android

Generate toolchains for the desired platforms:

 $ cd /path/to/ndk/
 $ build/tools/make_standalone_toolchain.py --arch arm --api 14 --stl libc++ --install-dir /path/to/toolchain/tc-arm
 $ build/tools/make_standalone_toolchain.py --arch arm64 --api 21 --stl libc++ --install-dir /path/to/toolchain/tc-arm64
 $ build/tools/make_standalone_toolchain.py --arch x86 --api 14 --stl libc++ --install-dir /path/to/toolchain/tc-x86

The library can be built for multiple platforms from the same source dir by specifying multiple out dirs. The result will be libZeroKitClientNative.so (the stripped, dynamically linked library) and libZeroKitClientNative.so.debug (the debug symbols for the library) in every out dir.

 $ cd /path/to/zerokitclientnative/
 $ make TARGET_OS=android TARGET_CPU=arm ANDROID_TOOLCHAIN_PATH_ARM=/path/to/toolchain/tc-arm OUTDIR=out/arm -j5
 $ make TARGET_OS=android TARGET_CPU=arm64 ANDROID_TOOLCHAIN_PATH_ARM64=/path/to/toolchain/tc-arm64 OUTDIR=out/arm64 -j5
 $ make TARGET_OS=android TARGET_CPU=x86 ANDROID_TOOLCHAIN_PATH_X86=/path/to/toolchain/tc-x86 OUTDIR=out/x86 -j5

iOS

The library can be built for multiple platforms from the same source dir by specifying multiple out dirs. The result will be libZeroKitClientNative.a (statically linked archive of the required object files) in every out dir.

 $ cd /path/to/zerokitclientnative/
 $ make TARGET_OS=ios TARGET_CPU=arm OUTDIR=out/arm -j5
 $ make TARGET_OS=ios TARGET_CPU=arm64 OUTDIR=out/arm64 -j5
 $ make TARGET_OS=ios TARGET_CPU=x86 OUTDIR=out/x86 -j5
 $ make TARGET_OS=ios TARGET_CPU=x64 OUTDIR=out/x64 -j5

Changelog

See the CHANGELOG.md file.

Contact us

Do you have any questions? Contact us ([email protected])

License

See the LICENSE.txt file.

zerokit-client-native-crypto's People

Watchers

James Cloos avatar

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.