1.0.0-rc.59 • Published 1 day ago

@wireapp/core-crypto v1.0.0-rc.59

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 day ago

Wire CoreCrypto

Wire logo

This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.

You can find the published source code at github.com/wireapp/wire.

For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.

No license is granted to the Wire trademark and its associated logos, all of which will continue to be owned exclusively by Wire Swiss GmbH. Any use of the Wire trademark and/or its associated logos is expressly prohibited without the express prior written consent of Wire Swiss GmbH.

Parts

  • CoreCrypto: Abstracts MLS & Proteus in a unified API
  • CoreCryptoFFI: FFI bindings for iOS, Android and WASM
  • Keystore: Encrypted Keystore powered by SQLCipher on all platforms except WASM. WASM uses an IndexedDB-backed, encrypted store with AES256-GCM
  • MlsProvider: RustCrypto + Keystore MLS provider

See ARCHITECTURE.md

Usage

API Docs

Building

General Requirements

Android

Install Android SDK and Build-Tools for API level 30+

NOTE: If you are building on macOS you'll need to setup $ANDROID_SDK_ROOT path variable manually:

export ANDROID_SDK_ROOT=~/Android/Sdk

Install android rust targets

rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi i686-linux-android

iOS

Install Xcode & it's commandline tools: https://developer.apple.com/xcode/

Install iOS rust targets

rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim

MacOS

Install macOS rust targets

rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin

Linux

If cross-compiling from macOS you'll need install: https://github.com/messense/homebrew-macos-cross-toolchains

Install linux targets

rustup target add x86_64-unknown-linux-gnu

WASM

  • Install wasm-pack
  • Install the wasm32-unknown-unknown toolchain rustup target add wasm32-unknown-unknown
  • Install node.js (recommended way is via Volta)
  • Install Bun (follow the instructions on Bun's website)

Bindings

Build bindings for Android, JVM, iOS and WASM

cd crypto-ffi 

# builds bindings and targets for the JVM (macOS / Linux)
cargo make "copy-jvm-resources"

# builds bindings and targets for Android
cargo make "copy-android-resources"

# builds iOS framework
cargo make "ios-create-xcframework"

# builds wasm binary & TS bindings
cargo make wasm

Publishing

Versioning

  • Run cargo xtask release bump [major|minor|patch|rc|pre]
  • Update the internal dependencies of the updated crates to use the new version
  • Update the version in the package.json
  • Update the version in the build.gradle.kts inside ./kotlin/android and ./kotlin/jvm

Changelog

  • Update <CHANGELOG.tpl> accordingly
  • Fetch the latest tags from the remote
  • run cargo xtask documentation changelog to update <CHANGELOG.md> with the git-conventional history

Android / JVM

You can publish the JVM and Android bindings to maven using gradle after you've built the corresponding target.

cd kotlin
./gradlew :jvm:publishToMavenLocal
./gradlew :android:publishToMavenLocal

JS / WASM

Given that you are logged in NPM and can publish to @wireapp/core-crypto, you can just npm publish to push a new version But this is not needed as releases are auto-published to the @wireapp organization

1.0.0-rc.59

1 day ago

1.0.0-rc.58

3 days ago

1.0.0-rc.57

8 days ago

1.0.0-rc.56

11 days ago

1.0.0-rc.55

1 month ago

1.0.0-rc.54

1 month ago

1.0.0-rc.53

2 months ago

1.0.0-rc.52

2 months ago

1.0.0-rc.51

2 months ago

1.0.0-rc.49

2 months ago

1.0.0-rc.50

2 months ago

1.0.0-rc.48

2 months ago

1.0.0-rc.47

2 months ago

1.0.0-rc.46

2 months ago

1.0.0-rc.45

2 months ago

1.0.0-rc.44

2 months ago

1.0.0-rc.43

2 months ago

1.0.0-rc.42

2 months ago

1.0.0-rc.41

2 months ago

1.0.0-rc.40

2 months ago

1.0.0-rc.39

2 months ago

1.0.0-rc.38

3 months ago

1.0.0-rc.37

3 months ago

1.0.0-rc.35

3 months ago

1.0.0-rc.36

3 months ago

1.0.0-rc.34

3 months ago

1.0.0-rc.33

3 months ago

1.0.0-rc.32

3 months ago

1.0.0-rc.31

3 months ago

1.0.0-rc.30

4 months ago

1.0.0-rc.24

4 months ago

1.0.0-rc.28

4 months ago

1.0.0-rc.27

4 months ago

1.0.0-rc.26

4 months ago

1.0.0-rc.29

4 months ago

1.0.0-rc.23

4 months ago

1.0.0-rc.22

5 months ago

1.0.0-rc.21

5 months ago

1.0.0-rc.9

8 months ago

1.0.0-rc.7

9 months ago

1.0.0-rc.8

8 months ago

1.0.0-rc.5

9 months ago

1.0.0-rc.6

9 months ago

1.0.0-rc.13

7 months ago

1.0.0-rc.12

8 months ago

1.0.0-rc.11

8 months ago

1.0.0-rc.10

8 months ago

1.0.0-rc.17

6 months ago

1.0.0-rc.16

7 months ago

1.0.0-rc.1

10 months ago

1.0.0-rc.14

7 months ago

1.0.0-rc.2

9 months ago

1.0.0-rc.19

5 months ago

1.0.0-rc.18

6 months ago

1.0.0-rc.20

5 months ago

1.0.0-pre.8

10 months ago

1.0.0-pre.7

10 months ago

1.0.0-pre.6

10 months ago

0.11.0

11 months ago

0.10.0

11 months ago

1.0.0-pre.1

11 months ago

1.0.0-pre.5

11 months ago

1.0.0-pre.4

11 months ago

0.9.0

12 months ago

0.9.2

12 months ago

0.9.1

12 months ago

0.7.0-rc.2

1 year ago

0.7.0-rc.4

1 year ago

0.7.0-rc.3

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.8.2

1 year ago

0.7.0

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.6.0-rc.8

1 year ago

0.6.0-rc.7

1 year ago

0.6.0-rc.6

1 year ago

0.6.0-rc.5

1 year ago

0.6.0-rc.4

1 year ago

0.6.0-rc.3

1 year ago

0.6.0-rc.2

1 year ago

0.6.0-rc.1

1 year ago

0.6.0-pre.5

1 year ago

0.6.0-pre.4

1 year ago

0.6.0-pre.3

2 years ago

0.6.0-pre.2

2 years ago

0.6.0-pre.1

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago