Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#80 Add features to let WASM use a 32bit backend for ed25519. Also re-enables CC on clear_on_drop #81

Merged
merged 3 commits into from
Jul 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.7.1

- [[#80](#80)] Added a default set of features to enable `ed2559-dalek`s 64 bit backend and added a `wasm` feature that will instead use a 32 bit backend

### Public API changes

None

## 0.7.0

### Public API changes
Expand All @@ -10,14 +18,14 @@
- `PrivateKey::ENCODED_SIZE_BYTES` is now pub
- [[#63](#63)] Added a prelude for easier importing of common types and traits
- `use recrypt::prelude::*`
- [[#70](#70)]
- [[#70](#70)]
- `DerivedSymmetricKey` now has a `to_private_key`
- `PublicKey` APIs now take all arguments as borrows
- [[#71](#71)]
- [[#71](#71)]
- provide `From<SigningKeyPair>` instance for `[u8; 64]`
- provide `Clone` for `PrivateKey`
- many wrapped byte types can be consumed to get the underlying bytes out without copying
- [[#72](#72)] `PublicSigningKey`'s `bytes()` method now returns a reference instead of copying
- [[#72](#72)] `PublicSigningKey`'s `bytes()` method now returns a reference instead of copying

## 0.6.2

Expand Down Expand Up @@ -56,9 +64,9 @@

## 0.4.0
- [#20] Update dependencies (rand 0.6, sha 0.8, ed25519 1.0.0-pre.0)
- [#18] Add a way to hash a Plaintext to 32 bytes.
- [#17] Add quick_error to all of our error ADTS
- [#14] Add benchmarking on Travis
- [#18] Add a way to hash a Plaintext to 32 bytes.
- [#17] Add quick_error to all of our error ADTS
- [#14] Add benchmarking on Travis
## 0.3.0

- Add hashable instance for TransformKey (#13)
Expand Down
14 changes: 6 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "recrypt"
version = "0.7.0"
version = "0.7.1"
authors = ["IroncCore Labs <info at ironcorelabs.com>"]
readme = "README.md"
license = "AGPL-3.0-only"
Expand All @@ -17,18 +17,14 @@ sha2 = "~0.8"
num-traits = "~0.2"
lazy_static = "~1.2"
arrayvec = "~0.4"
ed25519-dalek = "1.0.0-pre.1"
#Disable all features for ed25519 and enable the proper ones down in the [features] section below
ed25519-dalek = { version="1.0.0-pre.1", default-features = false }
clear_on_drop = "~0.2"
gridiron = "^0.6.0"
gridiron = "^0.6.0"
quick-error = "~1.2"
hex="~0.3"
arrayref = "^0.3.5"

[target.wasm32-unknown-unknown.dependencies]
# The clear_on_drop crate, by default, implements code via C to clear memory. That doesn't work in WASM. However, they
# have a feature to turn off requiring C which we're enabling here for WASM targets.
clear_on_drop = {version = "0.2", features = ["no_cc"]}

[profile.dev]
opt-level = 2 # Build deps with optimization, don't build ourselves with optimization
debug = true
Expand All @@ -49,6 +45,8 @@ criterion = "~0.2"

[features]
unstable = []
default = ["ed25519-dalek/std", "ed25519-dalek/u64_backend"]
wasm = ["ed25519-dalek/std", "ed25519-dalek/u32_backend", "clear_on_drop/no_cc"]

[[bench]]
name = "api_benchmark"
Expand Down