forked from dalek-cryptography/curve25519-dalek
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dalek-cryptography:main' into master
- Loading branch information
Showing
49 changed files
with
1,985 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ '*' ] | ||
pull_request: | ||
branches: [ main, develop ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test-u32: | ||
name: Test u32 backend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --no-default-features --features "std u32_backend" | ||
|
||
test-u64: | ||
name: Test u64 backend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --no-default-features --features "std u64_backend" | ||
|
||
test-simd: | ||
name: Test simd backend (nightly) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --no-default-features --features "std simd_backend" | ||
|
||
test-defaults-serde: | ||
name: Test default feature selection and serde | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --features "serde" | ||
|
||
test-alloc-u32: | ||
name: Test no_std+alloc with u32 backend | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --lib --no-default-features --features "alloc u32_backend" | ||
|
||
bench: | ||
name: Check that benchmarks compile | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: bench | ||
# This filter selects no benchmarks, so we don't run any, only build them. | ||
args: "DONTRUNBENCHMARKS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ name = "curve25519-dalek" | |
# - update CHANGELOG | ||
# - update html_root_url | ||
# - update README if required by semver | ||
version = "3.0.0" | ||
# - if README was updated, also update module documentation in src/lib.rs | ||
version = "3.2.0" | ||
authors = ["Isis Lovecruft <[email protected]>", | ||
"Henry de Valence <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -32,7 +33,8 @@ travis-ci = { repository = "dalek-cryptography/curve25519-dalek", branch = "mast | |
[dev-dependencies] | ||
sha2 = { version = "0.9", default-features = false } | ||
bincode = "1" | ||
criterion = "0.3.0" | ||
criterion = { version = "0.3.0", features = ["html_reports"] } | ||
hex = "0.4.2" | ||
rand = "0.7" | ||
|
||
[[bench]] | ||
|
@@ -45,8 +47,11 @@ byteorder = { version = "^1.2.3", default-features = false, features = ["i128"] | |
digest = { version = "0.9", default-features = false } | ||
subtle = { version = "^2.2.1", default-features = false } | ||
serde = { version = "1.0", default-features = false, optional = true, features = ["derive"] } | ||
# The original packed_simd package was orphaned, see | ||
# https://github.com/rust-lang/packed_simd/issues/303#issuecomment-701361161 | ||
packed_simd = { version = "0.3.4", package = "packed_simd_2", features = ["into_bits"], optional = true } | ||
zeroize = { version = "1", default-features = false } | ||
fiat-crypto = { version = "0.1.6", optional = true} | ||
|
||
[features] | ||
nightly = ["subtle/nightly"] | ||
|
@@ -58,6 +63,10 @@ alloc = ["zeroize/alloc"] | |
u32_backend = [] | ||
# The u64 backend uses u64s with u128 products. | ||
u64_backend = [] | ||
# fiat-u64 backend (with formally-verified field arith) uses u64s with u128 products. | ||
fiat_u64_backend = ["fiat-crypto"] | ||
# fiat-u32 backend (with formally-verified field arith) uses u32s with u64 products. | ||
fiat_u32_backend = ["fiat-crypto"] | ||
# The SIMD backend uses parallel formulas, using either AVX2 or AVX512-IFMA. | ||
simd_backend = ["nightly", "u64_backend", "packed_simd"] | ||
# DEPRECATED: this is now an alias for `simd_backend` and may be removed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.