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

V4.1.1 #3

Merged
merged 963 commits into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
963 commits
Select commit Hold shift + click to select a range
cc304c2
Use `--cfg curve25519_dalek_backend` to select backend (#455)
tarcieri Dec 9, 2022
cf56e78
bump MSRV to 1.60 and update to current curve25519-dalek
dignifiedquire Dec 9, 2022
50dc19b
cargo fmt
dignifiedquire Dec 9, 2022
fa9e16e
happy clippy
dignifiedquire Dec 9, 2022
ce3b8d3
fixup: cleanup extern crates
dignifiedquire Dec 9, 2022
cb42e87
Fixes curve25519_dalek_bits defaults for cross and wasm (#465)
pinkforest Dec 10, 2022
cfcdf53
Cargo.toml: compatibility updates for `curve25519-dalek` and `ed25519…
tarcieri Dec 10, 2022
fa45d21
Use `CryptoRngCore` trait (#469)
tarcieri Dec 11, 2022
acd7898
Document `curve25519_dalek_` `backend` and `bits` selection (#467)
pinkforest Dec 11, 2022
6f237a0
Use inherent constants for `ZERO`, `ONE`, and `MINUS_ONE` (#470)
tarcieri Dec 12, 2022
f38d677
Updated CHANGELOG; added stable/beta instructions to README
rozbb Dec 12, 2022
82a2d4c
Merge branch 'main' into release/4.0
rozbb Dec 12, 2022
94a99d8
README: Removed non-existent features
rozbb Dec 12, 2022
274f4a7
Change `Scalar::from_canonical_bytes` to return `CtOption` (#472)
tarcieri Dec 12, 2022
d714014
Add `rust-version` to cargo
rozbb Dec 12, 2022
87fc531
Added latest changelog entries to readme
rozbb Dec 12, 2022
1746118
Removed changelog line about wasm and arm defaults
rozbb Dec 12, 2022
1cedb37
Fixed docs build (#475)
rozbb Dec 13, 2022
dbe5995
Bumped prerelease version
rozbb Dec 13, 2022
42d8dbd
Merge `release/4.0` into `main` (#474)
rozbb Dec 13, 2022
91c2305
Fixed docsrs flags in Cargo.toml
rozbb Dec 13, 2022
3f2da87
Fix clippy for build.rs
pinkforest Dec 13, 2022
6a513fc
Merge pull request #477 from rozbb/fix-docsrs
rozbb Dec 13, 2022
14b04b2
Merge pull request #478 from pinkforest/fix-clippy-is-my-bestie
rozbb Dec 13, 2022
b0b22de
Bumped prerelease version
rozbb Dec 13, 2022
55620dc
PKCS#8 support (#224)
tarcieri Dec 13, 2022
39053b1
Fix docs release pre.5
pinkforest Dec 13, 2022
06186b8
Merge pull request #479 from pinkforest/doc-fix-release-pre5
rozbb Dec 14, 2022
52da735
Rename `Keypair` => `SigningKey`; `PublicKey` => `VerifyingKey` (#242)
tarcieri Dec 18, 2022
134b5e1
Fix SigningKey to/from_bytes doc/coverage
pinkforest Dec 18, 2022
24cd942
Change from_bytes methods to take fixed-size array argument
mina86 Dec 2, 2022
f0b2df0
Merge pull request #230 from mina86/a
tarcieri Dec 18, 2022
c01cab0
Merge pull request #243 from pinkforest/fix-signingkey-docs-coverage
tarcieri Dec 18, 2022
194b17f
Fix all Clippy warnings (#244)
pinkforest Dec 18, 2022
50dbb9e
Add as_bytes() method
dlblv Dec 19, 2022
a0384be
Impl `Drop`/`ZeroizeOnDrop` for `SigningKey` (#247)
tarcieri Dec 20, 2022
951d489
CI: check code is formatted correctly using `rustfmt` (#246)
tarcieri Dec 20, 2022
f6a242a
Use namespaced/weak features; MSRV 1.60 (#235)
tarcieri Dec 20, 2022
7374fd3
fix clippy warnings
dlblv Dec 20, 2022
616d55c
Impld Clone for SigningKey (#249)
rozbb Dec 21, 2022
39dbaea
Make `zeroize` an optional dependency (#481)
tarcieri Dec 26, 2022
7d53206
Weakly activate `zeroize?/alloc`; MSRV 1.60 (#485)
tarcieri Dec 27, 2022
7227c6f
Remove Travis CI configuration (#484)
tarcieri Dec 27, 2022
ebcd744
CI: add `build-nostd` job (#482)
tarcieri Dec 27, 2022
0ffcb84
Don't set `html_root_url` (#483)
tarcieri Dec 27, 2022
1b000d2
CI: use RustCrypto/actions/cross-install (#487)
tarcieri Dec 27, 2022
6a51f4f
Make basepoint table constants `&'static` references (#488)
tarcieri Dec 28, 2022
d95e3bd
impl AsRef for keys as well
dlblv Dec 29, 2022
e2ed313
Fix batch build (#220)
rozbb Jan 2, 2023
65aeda0
Impl `From<&SigningKey>` for `VerifyingKey` (#252)
tarcieri Jan 5, 2023
f036eaf
Validation criteria tests (#253)
rozbb Jan 6, 2023
8c2f545
Expand `const fn` support (#494)
tarcieri Jan 6, 2023
461a2d7
Bump `ed25519` crate to v2.0.0-rc.0 (#257)
tarcieri Jan 7, 2023
4f218d8
Adding verify_prehashed_strict() (#212)
orthecreedence Jan 7, 2023
83f6b14
Add `basepoint-tables` crate feature (#489)
tarcieri Jan 8, 2023
6ee4d1d
Use `curve25519-dalek` from git; check in Cargo.lock (#260)
tarcieri Jan 9, 2023
4f6b4b2
Make `zeroize` optional (#263)
pinkforest Jan 9, 2023
fedb145
Add `Scalar::from_bits_clamped` (#498)
SergeStrashko Jan 9, 2023
b5dc40b
Make `verify_batch` deterministic (#256)
rozbb Jan 15, 2023
8c455f5
Make `rand_core` optional (#262)
pinkforest Jan 16, 2023
6d9bbd3
Bump `ed25519` dependency to v2 (#266)
tarcieri Jan 17, 2023
e1d4ef3
Implement Hash trait for VerifyingKey (#265)
returntoreality Jan 17, 2023
431e699
Make digest optional (#268)
pinkforest Jan 19, 2023
8d1bc31
Rename `basepoint-tables` to `precomputed-tables` (#499)
tarcieri Jan 19, 2023
bfacbe7
Make `from_slice` methods fallible; add `TryFrom<&[u8]>` (#495)
tarcieri Jan 19, 2023
3effd73
Feature-gated more precomputed tables (#500)
rozbb Jan 20, 2023
f61e9dc
Add on-by-default `fast` crate feature for gating basepoint tables (#…
tarcieri Jan 20, 2023
ba765a5
Impl `signature::Digest*` traits for Ed25519ph (#270)
tarcieri Jan 21, 2023
7d255cd
CI: test `cargo doc` build (#271)
tarcieri Jan 21, 2023
c2b8978
Do byte comparison in all `verify_*` functions (#269)
rozbb Jan 21, 2023
27ba9dd
Bump `ed25519` crate dependency to v2.1 (#272)
tarcieri Jan 21, 2023
861784f
Add `Context` type (#273)
tarcieri Jan 26, 2023
928d6d1
Docs.rs + README changes for 2.x (#241)
pinkforest Jan 27, 2023
1a388f7
Bump version to 4.0-rc.0 (#501)
rozbb Jan 27, 2023
1b86ff1
Bump `curve25519-dalek` to v4.0.0-rc.0 (#276)
tarcieri Jan 28, 2023
88cc32b
Updated to curve25519-dalek rc0
rozbb Jan 29, 2023
8330061
Attempt to fix CI
rozbb Jan 29, 2023
e9fe414
Merge pull request #95 from dignifiedquire/update-deps
rozbb Jan 29, 2023
79bcbdc
Re-export commonly used types from toplevel (#502)
tarcieri Jan 29, 2023
b375b46
Fixed-based Montgomery scalar multiplication (#503)
tarcieri Jan 31, 2023
5190ad6
Impl `VerifyingKey::is_weak` (#277)
rozbb Jan 31, 2023
3b71630
Fix docsrs build (#505)
rozbb Feb 2, 2023
783b6e8
README changes for 2.0 (#275)
rozbb Feb 2, 2023
57a8add
Removed vestigial `nightly` feature from docsrs instructions
rozbb Feb 2, 2023
b2d0f0e
Bump to rc.1
rozbb Feb 2, 2023
ce3eed8
Merge pull request #278 from dalek-cryptography/release/2.0
rozbb Feb 2, 2023
b77fa51
Bump curve25519-dalek dep to rc.1
rozbb Feb 4, 2023
0b04124
Fixed MSRV build
rozbb Feb 4, 2023
619ef68
Merge pull request #279 from rozbb/main
rozbb Feb 4, 2023
3194759
Merge pull request #96 from dlblv/fix/add-secret-as-bytes
tarcieri Feb 17, 2023
327618c
Fix two typos
striezel Feb 24, 2023
97d6d55
Merge pull request #106 from striezel-stash/fix-typos
tarcieri Feb 26, 2023
4686ade
Use named fields for `struct VerifyingKey` (#284)
tarcieri Mar 7, 2023
e0e02cf
Bump `ed25519` to v2.2; `pkcs8` to v0.10 (#285)
tarcieri Mar 7, 2023
3efde34
Remove invalid input fields from CI action for Rust setup (#283)
striezel Mar 7, 2023
c33b49b
Update actions/checkout in GitHub Actions workflow to v3 (#282)
striezel Mar 7, 2023
64b26ad
Fix a few typos (#281)
striezel Mar 7, 2023
67b8c2e
Fix error for custom targets (#510)
pinkforest Mar 10, 2023
62149c4
Fix CI
pinkforest Mar 12, 2023
5cb2a49
Test all features and no_std iterate
pinkforest Mar 12, 2023
8c9c94a
Add Cargo.lock
pinkforest Mar 12, 2023
be8a657
Add .lock
pinkforest Mar 12, 2023
c779e21
Fixed doc nit from update-ci branch
pinkforest Mar 12, 2023
707675d
Disable no_std from CI
pinkforest Mar 12, 2023
cbd3958
Fix bench features
pinkforest Mar 12, 2023
fdc992d
Fix no_std with get_random
pinkforest Mar 12, 2023
f3c46bc
Remove redundant feature
pinkforest Mar 12, 2023
281fab6
Fix docsrs
pinkforest Mar 12, 2023
a7769a6
Add assets
pinkforest Mar 12, 2023
4b6c61c
Correct crate name
pinkforest Mar 12, 2023
0139af7
Remove rustup in favor of rust-toolchain
pinkforest Mar 12, 2023
853a3df
Merge pull request #109 from pinkforest/fix-ci
tarcieri Mar 12, 2023
5080b42
Merge remote-tracking branch 'origin/release/2.0' into fix-no_std
pinkforest Mar 12, 2023
379e506
Merge remote-tracking branch 'origin/release/2.0' into fix-docsrs
pinkforest Mar 12, 2023
987f7d6
Merge pull request #115 from pinkforest/fix-docsrs
tarcieri Mar 12, 2023
a63e14f
Use ok_or_else instead of ok_or in serde decoding (#382)
jrose-signal Mar 14, 2023
99c0520
Fixes cfg with target from env (#516)
pinkforest Mar 18, 2023
7dc1bbd
Remove two unnecessary `into_iter` (#290)
smoelius Mar 18, 2023
d6c3cbf
Merge branch 'main' into release/2.0
rozbb Mar 20, 2023
0e73cb8
Merge pull request #117 from dalek-cryptography/release/2.0
rozbb Mar 20, 2023
6aabb9b
Merge pull request #119 from pinkforest/fix-no_std
tarcieri Mar 21, 2023
02a5ce2
Add `getrandom` (#118)
pinkforest Mar 21, 2023
9577d1e
Add no_std to CI (#289)
pinkforest Mar 21, 2023
2931c68
Fix `serde` / `no_std` incompatibility
ryan-mob Mar 21, 2023
c982811
chore: Release 4.0.0-rc.2 (#522)
pinkforest Mar 26, 2023
7901b21
Improve diagnostics when key being deserializing is too long (#294)
robjtede Mar 26, 2023
5014c91
chore: Release 2.0.0-rc.2 (#295)
pinkforest Mar 26, 2023
f460ae1
Make scalars always reduced (#519)
rozbb Mar 28, 2023
4583c47
Support SIMD on Rust stable (#520)
koute Mar 30, 2023
c8c9f29
Add `Scalar` and `MontgomeryPoint` conversions (#296)
tarcieri Mar 30, 2023
80aac08
Fixed repoerted speedup/slowdown percentages in README benchmarks (#297)
rozbb Mar 30, 2023
8415833
Make `static_secrets` optional (#122)
pinkforest Mar 31, 2023
cccf389
chore: Release 2.0.0-rc.2 (#123)
pinkforest Mar 31, 2023
25fa593
Update to new `Scalar` API (#120)
rozbb Mar 31, 2023
91e839a
Add extra #[inline]; this speeds up the avx2 backend slightly
koute Apr 11, 2023
0db8783
Runtime backend autodetection
koute Apr 11, 2023
219995d
`rustfmt src/backend/vector/scalar_mul` (no changes besides formatting)
koute Apr 11, 2023
1b6fee3
Make clippy happy
koute Apr 11, 2023
996b1e9
Make cargodoc happy
koute Apr 11, 2023
738cfee
Get rid of the `unused_unsafe` warning on old versions of Rust.
koute Apr 11, 2023
90f10ed
Fix a typo (#300)
poljar Apr 11, 2023
d828434
Update crypto_box URL
eaon May 8, 2023
f683cf4
Merge pull request #125 from eaon/crypto_box_url
tarcieri May 9, 2023
4afbf09
Add `hazmat` module with `ExpandedSecretKey`, `raw_sign`, `raw_sign_p…
rozbb May 15, 2023
a7df9c7
Remove `Self`s which don't compile anymore
koute May 17, 2023
c67e430
(work-in-progress) Partially remove `unsafe_target_feature`
koute May 17, 2023
267961b
README.md: use buildstats.info crate badge (#526)
tarcieri May 20, 2023
6c2233b
Fix the upper bound in the description of `mods` (#525)
upbqdn May 29, 2023
618c508
Replace `unwrap_u8` with `into` (#528)
tarcieri May 31, 2023
94247a7
Revert "(work-in-progress) Partially remove `unsafe_target_feature`"
koute Jun 5, 2023
5028971
Pin the version of `unsafe_target_feature`
koute Jun 5, 2023
50aa635
Fix the doc comment in `packed_simd.rs`
koute Jun 5, 2023
e111b5d
Merge pull request #523 from koute/main_runtime_simd
rozbb Jun 11, 2023
9b166b7
Update to new `Scalar` API (#293)
rozbb Jun 12, 2023
e429bde
Clean up backend features and vendor curve25519_dalek_derive (#531)
pinkforest Jun 22, 2023
2e3212b
chore: Release 4.0.0-rc.3 (#535)
pinkforest Jun 23, 2023
58a967f
chore: Release 2.0.0-rc.3 (#307)
pinkforest Jun 24, 2023
8613b5a
chore: Release 2.0.0-rc.3 (#128)
pinkforest Jun 24, 2023
40cf5af
Workspace curve25519 under curve25519-dalek
pinkforest Jun 27, 2023
52742e7
Merge remote-tracking branch 'ed/main' into monorepo-t1
pinkforest Jun 27, 2023
d62def9
Workspace ed25519 under ed25519-dalek
pinkforest Jun 27, 2023
e7ecb74
Merge remote-tracking branch 'x/main' into monorepo-t1
pinkforest Jun 27, 2023
bf0e37d
Workspace x25519 under x25519-dalek
pinkforest Jun 27, 2023
2cc52c2
Move CI & assets into workspace
pinkforest Jun 28, 2023
6e422d9
Re-organize Cargo manifests to workspace
pinkforest Jun 28, 2023
7db9981
Re-work CI around workspace
pinkforest Jun 28, 2023
bf8b21c
Add new workspace README and CONTRIBUTING
pinkforest Jun 28, 2023
98a0a6f
Moved code of conduct
rozbb Jun 30, 2023
f789810
Merge pull request #536 from pinkforest/monorepo-t1
rozbb Jun 30, 2023
e17a0e7
Bump quote and syn
pinkforest Jun 30, 2023
76e1934
Merge pull request #540 from pinkforest/bump-quote
rozbb Jun 30, 2023
5f0d41f
ed25519-dalek: remove `ExpandedSecretKey::to_bytes` (#545)
tarcieri Jul 11, 2023
d671fc2
README.md: fix crate table
tarcieri Jul 20, 2023
20d1346
Fix CI failures (#548)
tarcieri Jul 22, 2023
0d1bc97
Fixed CI badges in workspaces
rozbb Jul 22, 2023
1ac254f
Remove old Cargo.lock files (#549)
tarcieri Jul 22, 2023
e44d4b5
curve,ed,x: Bump curve version to 4.0.0 (#550)
rozbb Jul 22, 2023
345364d
Update README.md
tarcieri Jul 28, 2023
42b55fd
ed: Bump ed25519-dalek to 2.0.0 (#559)
rozbb Aug 11, 2023
6dd17b2
x: Mark x25519-dalek version 2 as stable (#554)
elichai Aug 11, 2023
bf2c4ee
curve: Mark scalar::clamp_integer as must_use (#558)
moiseev-signal Aug 12, 2023
c66973c
ed: ConstantTimeEq and PartialEq for SigningKey (#557)
mkj Aug 12, 2023
b93ace8
Address Clippy lints (#543)
robjtede Aug 27, 2023
098658d
ed: Add `SigningKey::as_bytes` (#561)
soerenmeier Aug 27, 2023
4373695
curve: implement `ff` and `group` traits (#562)
pinkforest Aug 27, 2023
8e0cef5
curve: Add arbitrary integer multiplication with `MontgomeryPoint::mu…
rozbb Aug 28, 2023
c058cd9
curve: Expand lints (#530)
tarcieri Aug 28, 2023
594b1f9
Updated Cargo.toml repo and homepage links to the Github monorepo
rozbb Aug 28, 2023
60dd310
curve: add `doc(hidden)` to serial backend modules (#568)
tarcieri Aug 28, 2023
c8d1d40
curve,ed: chore: update dev deps (#569)
robjtede Aug 28, 2023
5c5a320
curve: Fix `no_std` for `fiat` backend and add test for it (#572)
pinkforest Sep 4, 2023
135476c
Fix variable names in the invariant description (#573)
wiktor-k Sep 5, 2023
a3a08b0
Adapt to new types introduced in fiat-crypto 0.2 (#566)
divergentdave Sep 5, 2023
1ec4a36
curve: update `repository` in Cargo.toml (#575)
tarcieri Sep 6, 2023
8ed1666
ed,x: updated repo links
rozbb Sep 6, 2023
9db51a6
curve: Release 4.1.0 (#574)
pinkforest Sep 6, 2023
e94a5fe
curve: README typos
rozbb Sep 6, 2023
c157a1e
Add group to documented features (#578)
kayabaNerve Sep 12, 2023
533b53a
Deprecate `BASEPOINT_ORDER` from pub API consts (#581)
pinkforest Sep 18, 2023
76a8b2a
Add PrimeFieldBits support to Scalar (#579)
kayabaNerve Sep 20, 2023
0cd099a
curve: Bump version to 4.1.1 (#584)
rozbb Sep 20, 2023
e6675c6
add cfg statements to only build doctest on x86 (#585)
nategraf Oct 3, 2023
598695c
ed25519: loosen `signature` crate dependency (#582)
tarcieri Oct 27, 2023
b924219
Copy licensing from previous repo
rozbb Oct 29, 2023
8a41a29
Forgot the license files
rozbb Oct 29, 2023
cd9378e
Removed unnecessary 'pub use'
rozbb Oct 30, 2023
81d0756
Made unnecessarily pub contents of field.rs pub(crate)
rozbb Oct 30, 2023
f4cd43f
Merge pull request #590 from dalek-cryptography/derive-license
rozbb Oct 31, 2023
78a86f1
ed25519-dalek: hide secret in `SigningKey`'s `Debug` impl (#592)
tarcieri Oct 31, 2023
3c85f77
CI: fix minimal-versions resolution (#593)
tarcieri Oct 31, 2023
72761ca
derive: Bump version to 0.1.1 (#594)
rozbb Oct 31, 2023
89aabac
README.md: remove broken image (#595)
tarcieri Nov 1, 2023
ac51ef6
ed25519: loosen `signature` crate dependency again (#598)
tarcieri Nov 14, 2023
04f811a
ed: Add back `SigningKey::to_scalar_bytes` (#599)
rozbb Nov 14, 2023
f08bbb7
ed: Prep to release v2.1.0 (#600)
rozbb Nov 14, 2023
a2ff6ba
{Signing,Verifying}KeyVisitor: visit_borrowed_bytes -> visit_bytes (#…
awesterb Nov 17, 2023
ba7a073
doc: Fix markdown PR reference (#605)
wiktor-k Nov 22, 2023
0b45e00
chore: typo fix (#608)
dzizazda Dec 13, 2023
55c5a33
Merge remote-tracking branch 'upstream/main' into update_to_v4
kotval Dec 13, 2023
81f9189
wip: remove betrusted feature
kotval Jan 12, 2024
ba737a3
Update README.md (#613)
guerrierindien Jan 21, 2024
b7c3eb9
fix: incorrect syntax for negation in cfg
kotval Feb 4, 2024
ff1c309
Fix nightly build (#619)
jimmygchen Feb 6, 2024
4ac84dd
curve,ed,x: Bump patch version to reflect fix to nightly SIMD build (…
rozbb Feb 7, 2024
486cd13
fix: build.rs now selects accelerated backend for xous
kotval Feb 8, 2024
50401ab
curve: mark `ValidityCheck` trait as `allow(dead_code)` (#625)
tarcieri Feb 12, 2024
17eab3d
ed: Make it possible to convert between VerifyingKey and EdwardsPoint…
randombit Feb 12, 2024
a62e4a5
Fix minor spelling mistakes (#629)
bitfl0wer Feb 14, 2024
e5f5371
wip: typo in cfg name
kotval Feb 16, 2024
22a6f18
wip: adding features back
kotval Feb 16, 2024
e8fdef8
Merge branch 'cfg_fix' into update_to_v4
kotval Feb 16, 2024
7bf60e4
wip: trying to get unifying version
kotval Feb 18, 2024
d98a8b1
wip: now builds correctly without precomputed-tables enabled
kotval Feb 18, 2024
19c7f4a
Fix new nightly redundant import lint warns (#638)
pinkforest Mar 1, 2024
31ccb67
Remove platforms in favor using CARGO_CFG_TARGET_POINTER_WIDTH (#636)
pinkforest Mar 1, 2024
b40ec71
wip: returning to cfg based dependency specification
kotval Mar 1, 2024
9b5b0c5
wip: fix dependencies so tests can build
kotval Mar 2, 2024
5a9ef20
wip: make tests compile
kotval Mar 2, 2024
858c4ca
Address new nightly clippy unnecessary qualifications (#639)
pinkforest Mar 7, 2024
96784db
add zeroize dependency and remove engine25519 dependency
bunnie Mar 11, 2024
fe0e8a2
add common components to run jobs inside the backend
bunnie Mar 11, 2024
e53c5e5
cleanup warnings now that engine25519 is trimmed
bunnie Mar 11, 2024
ebcc370
cleanup field arithmetic routines to refer to local job primitives
bunnie Mar 11, 2024
4c58a51
cleanup to refer to local job primitives
bunnie Mar 11, 2024
80fded7
add functions to allow low-level access from outside the crate
bunnie Mar 11, 2024
4fdd15c
cleanup warnings
bunnie Mar 11, 2024
cc3421a
Indicate that the rand_core feature is required (#641)
beyarkay Mar 16, 2024
0a0a972
fix: incorrectly prevented to_radix_2w_size_hint on u32e
kotval Mar 21, 2024
81d5c53
Merge pull request #2 from kotval/update_to_v4
bunnie Mar 24, 2024
b486cda
Merge branch 'main' into v4.1.1
bunnie Mar 24, 2024
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
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.riscv32imac-unknown-xous-elf]
rustflags = ["--cfg",'curve25519_dalek_backend="u32e_backend"']
44 changes: 44 additions & 0 deletions .github/workflows/cross.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Cross

on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-D warnings'

jobs:

test-cross:
name: Test
strategy:
matrix:
include:
# ARM32
- target: armv7-unknown-linux-gnueabihf
rust: stable

# ARM64
- target: aarch64-unknown-linux-gnu
rust: stable

# PPC32
- target: powerpc-unknown-linux-gnu
rust: stable

# TODO: We only test x/ed/curve for cross as derive is platform specifics
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: ${{ matrix.deps }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- uses: RustCrypto/actions/cross-install@master
- run: cross test -p curve25519-dalek --release --target ${{ matrix.target }}
- run: cross test -p ed25519-dalek --release --target ${{ matrix.target }}
- run: cross test -p x25519-dalek --release --target ${{ matrix.target }}
145 changes: 145 additions & 0 deletions .github/workflows/curve25519-dalek.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
name: curve25519 Rust

on:
push:
branches: [ '**' ]
paths:
- 'curve25519-dalek/**'
- '.github/workflows/curve25519-dalek.yml'
pull_request:
branches: [ '**' ]
paths:
- 'curve25519-dalek/**'
- '.github/workflows/curve25519-dalek.yml'

defaults:
run:
working-directory: curve25519-dalek

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-D warnings'

jobs:

test-fiat:
name: Test fiat backend
runs-on: ubuntu-latest
strategy:
matrix:
include:
# 32-bit target
- target: i686-unknown-linux-gnu
deps: sudo apt update && sudo apt install gcc-multilib

# 64-bit target
- target: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: rustup target add ${{ matrix.target }}
- run: ${{ matrix.deps }}
- env:
RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"'
run: cargo test --target ${{ matrix.target }}

# Default no_std test only tests using serial across all crates
build-nostd-fiat:
name: Build fiat on no_std target (thumbv7em-none-eabi)
runs-on: ubuntu-latest
strategy:
matrix:
include:
- crate: curve25519-dalek
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: thumbv7em-none-eabi
- uses: taiki-e/install-action@cargo-hack
# No default features build
- name: no_std fiat / no feat ${{ matrix.crate }}
env:
RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"'
run: cargo build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --no-default-features
- name: no_std fiat / cargo hack ${{ matrix.crate }}
env:
RUSTFLAGS: '--cfg curve25519_dalek_backend="fiat"'
run: cargo hack build -p ${{ matrix.crate }} --target thumbv7em-none-eabi --release --each-feature --exclude-features default,std,getrandom

test-serial:
name: Test serial backend
runs-on: ubuntu-latest
strategy:
matrix:
include:
# 32-bit target
- target: i686-unknown-linux-gnu
deps: sudo apt update && sudo apt install gcc-multilib

# 64-bit target
- target: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: rustup target add ${{ matrix.target }}
- run: ${{ matrix.deps }}
- env:
RUSTFLAGS: '--cfg curve25519_dalek_backend="serial"'
run: cargo test --target ${{ matrix.target }}

build-script:
name: Test Build Script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu,i686-unknown-linux-gnu
- run: bash tests/build_tests.sh

test-simd-nightly:
name: Test simd backend (nightly)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- env:
# This will:
# 1) build all of the x86_64 SIMD code,
# 2) run all of the SIMD-specific tests that the test runner supports,
# 3) run all of the normal tests using the best available SIMD backend.
# This should automatically pick up the simd backend in a x84_64 runner
RUSTFLAGS: '-C target_cpu=native'
run: cargo test --target x86_64-unknown-linux-gnu

test-simd-stable:
name: Test simd backend (stable)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- env:
# This will run AVX2-specific tests and run all of the normal tests
# with the AVX2 backend, even if the runner supports AVX512.
# This should automatically pick up the simd backend in a x86_64 runner
# It should pick AVX2 due to stable toolchain used since AVX512 requires nigthly
RUSTFLAGS: '-C target_feature=+avx2'
run: cargo test --no-default-features --features alloc,precomputed-tables,zeroize,group-bits --target x86_64-unknown-linux-gnu

msrv:
name: Current MSRV is 1.60.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Re-resolve Cargo.lock with minimal versions
- uses: dtolnay/rust-toolchain@nightly
- run: cargo update -Z minimal-versions
# Now check that `cargo build` works with respect to the oldest possible
# deps and the stated MSRV
- uses: dtolnay/[email protected]
- run: cargo build --no-default-features --features serde
# Also make sure the AVX2 build works
- run: cargo build --target x86_64-unknown-linux-gnu
33 changes: 33 additions & 0 deletions .github/workflows/ed25519-dalek.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ed25519 Rust

on:
push:
branches: [ '**' ]
paths: 'ed25519-dalek/**'
pull_request:
branches: [ '**' ]
paths: 'ed25519-dalek/**'

defaults:
run:
working-directory: ed25519-dalek

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: '-D warnings'
RUSTDOCFLAGS: '-D warnings'

jobs:

msrv:
name: Current MSRV is 1.60.0
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Re-resolve Cargo.lock with minimal versions
- uses: dtolnay/rust-toolchain@nightly
- run: cargo update -Z minimal-versions
# Now check that `cargo build` works with respect to the oldest possible
# deps and the stated MSRV
- uses: dtolnay/[email protected]
- run: cargo build
131 changes: 0 additions & 131 deletions .github/workflows/rust.yml

This file was deleted.

Loading
Loading