bunnie
0077595699
add feature flags for auto-release of hw and warnings on sw fallback
2024-03-28 09:48:29 +08:00
bunnie
94a47207d5
add fallback to field operations
...
this falls back to fiat-crypto primitives if the hw engine
is unavailable.
2024-03-25 13:43:52 +08:00
bunnie
0b052f5f79
make ensure_engine() falliable
...
this will trigger software fallback
2024-03-25 13:43:38 +08:00
bunnie
275f586b60
add back in bits_le
...
needed for software fallback
2024-03-25 13:42:58 +08:00
bunnie
63a24a80b6
add sw fallback for montgomery routines
2024-03-25 13:42:31 +08:00
bunnie
077d5a1fba
cleanup warning
2024-03-25 13:42:12 +08:00
bunnie
12e406ce05
add fiat-crypto crate for emulation in case hardware is busy
2024-03-25 13:41:40 +08:00
bunnie
f34c6ae4d8
make analysis work better
2024-03-25 13:41:27 +08:00
bunnie
b6ce2f60a9
cleanup warnings, as much as possible.
2024-03-25 08:04:26 +08:00
bunnie
0fc7183a2a
Merge pull request #3 from betrusted-io/v4.1.1
...
V4.1.1
2024-03-25 07:03:35 +08:00
bunnie
b486cda2a0
Merge branch 'main' into v4.1.1
2024-03-25 06:59:43 +08:00
bunnie
81d5c53ff8
Merge pull request #2 from kotval/update_to_v4
...
Update to v4 WIP
2024-03-25 06:55:08 +08:00
David Kotval
0a0a972dfa
fix: incorrectly prevented to_radix_2w_size_hint on u32e
...
This function should be able to be enabled by feature
selection.
2024-03-21 16:35:12 -05:00
Boyd Kane
cc3421a22f
Indicate that the rand_core feature is required ( #641 )
2024-03-16 07:43:25 -06:00
bunnie
4fdd15c3af
cleanup warnings
2024-03-11 19:12:17 +08:00
bunnie
80fded7589
add functions to allow low-level access from outside the crate
...
and also make the internal functions use the same conventions
2024-03-11 18:44:17 +08:00
bunnie
4c58a5166f
cleanup to refer to local job primitives
2024-03-11 18:15:19 +08:00
bunnie
ebcc3702d3
cleanup field arithmetic routines to refer to local job primitives
2024-03-11 18:14:57 +08:00
bunnie
e53c5e50a5
cleanup warnings now that engine25519 is trimmed
2024-03-11 18:13:47 +08:00
bunnie
fe0e8a2f7a
add common components to run jobs inside the backend
2024-03-11 18:13:19 +08:00
bunnie
96784dbbc4
add zeroize dependency and remove engine25519 dependency
...
porting this in a manner similar to that used by the sha2 crate,
removing the explicit Xous dependency link.
see PR for discussion of issues
2024-03-11 18:12:15 +08:00
pinkforest(she/her)
858c4ca8ae
Address new nightly clippy unnecessary qualifications ( #639 )
2024-03-07 16:58:20 -07:00
David Kotval
5a9ef20763
wip: make tests compile
2024-03-02 14:36:19 -06:00
David Kotval
9b5b0c5502
wip: fix dependencies so tests can build
2024-03-02 14:35:38 -06:00
David Kotval
b40ec7135e
wip: returning to cfg based dependency specification
2024-03-01 13:54:05 -06:00
pinkforest(she/her)
31ccb67050
Remove platforms in favor using CARGO_CFG_TARGET_POINTER_WIDTH ( #636 )
2024-03-01 07:35:23 -07:00
pinkforest(she/her)
19c7f4a5d5
Fix new nightly redundant import lint warns ( #638 )
2024-02-29 18:56:52 -07:00
David Kotval
d98a8b11e7
wip: now builds correctly without precomputed-tables enabled
2024-02-18 17:38:36 -06:00
David Kotval
7bf60e4a2b
wip: trying to get unifying version
2024-02-18 16:44:04 -06:00
David Kotval
e8fdef83b4
Merge branch 'cfg_fix' into update_to_v4
2024-02-16 15:48:38 -06:00
David Kotval
22a6f18388
wip: adding features back
2024-02-16 15:45:53 -06:00
David Kotval
e5f5371a9c
wip: typo in cfg name
2024-02-16 13:37:44 -06:00
Flori
a62e4a5c57
Fix minor spelling mistakes ( #629 )
2024-02-14 12:01:05 -07:00
Jack Lloyd
17eab3d6c1
ed: Make it possible to convert between VerifyingKey and EdwardsPoint ( #624 )
...
Adds VerifyingKey::to_edwards and a From conversion
See #623
2024-02-12 14:36:43 -05:00
Tony Arcieri
50401ab430
curve: mark ValidityCheck trait as allow(dead_code) ( #625 )
...
Recent nightlies have started emitting a dead code lint
2024-02-12 11:56:06 -05:00
David Kotval
486cd1315f
fix: build.rs now selects accelerated backend for xous
2024-02-08 14:20:02 -06:00
Michael Rosenberg
4ac84dd066
curve,ed,x: Bump patch version to reflect fix to nightly SIMD build ( #621 )
2024-02-06 20:09:18 -05:00
Jimmy Chen
ff1c309b23
Fix nightly build ( #619 )
...
* Fix nightly build
* Add nightly feature constraint so AVX-512 requires either x86 or x86_64
Co-authored-by: Tony Arcieri <bascule@gmail.com>
* fmt
---------
Co-authored-by: Michael Rosenberg <micro@fastmail.com>
Co-authored-by: Tony Arcieri <bascule@gmail.com>
Co-authored-by: Michael Rosenberg <michael@mrosenberg.pub>
2024-02-06 15:09:29 -05:00
David Kotval
b7c3eb9b67
fix: incorrect syntax for negation in cfg
2024-02-04 14:27:30 -06:00
Ford
ba737a3790
Update README.md ( #613 )
2024-01-21 08:27:47 -07:00
David Kotval
81f9189d2f
wip: remove betrusted feature
2024-01-12 02:10:08 +00:00
David Kotval
55c5a33411
Merge remote-tracking branch 'upstream/main' into update_to_v4
2023-12-13 17:45:20 -06:00
Pioua
0b45e00ad5
chore: typo fix ( #608 )
2023-12-13 08:10:05 -07:00
Wiktor Kwapisiewicz
ba7a073487
doc: Fix markdown PR reference ( #605 )
2023-11-22 06:21:20 -07:00
Bram Westerbaan
a2ff6ba9e4
{Signing,Verifying}KeyVisitor: visit_borrowed_bytes -> visit_bytes ( #602 )
2023-11-17 02:44:28 -05:00
Michael Rosenberg
f08bbb7f57
ed: Prep to release v2.1.0 ( #600 )
2023-11-14 15:35:42 -05:00
Michael Rosenberg
04f811ad21
ed: Add back SigningKey::to_scalar_bytes ( #599 )
...
* Brought back SigningKey::to_scalar_bytes; added regression test
* Updated SigningKey::to_scalar docs and tests
2023-11-14 13:23:48 -05:00
Tony Arcieri
ac51ef6ecf
ed25519: loosen signature crate dependency again ( #598 )
...
Like #582 , there is a new release of `signature` (v2.2.0) which contains
no breaking changes from ed25519-dalek's perspective. The main notable
one is it bumps MSRV to 1.60, which so also happens to also be
ed25519-dalek's MSRV.
This commit loosens the version requirement to allow `>=2.0, <2.3` to
allow the `signature` 2.2 series.
2023-11-14 00:09:16 -05:00
Tony Arcieri
89aabac235
README.md: remove broken image ( #595 )
...
This image duplicates the `curve25519-dalek` table entry below.
It also doesn't actually link to anything, making README.md look broken.
2023-11-01 13:33:43 -04:00
Michael Rosenberg
72761ca6b4
derive: Bump version to 0.1.1 ( #594 )
...
* derive: Bump version to 0.1.1
* Added changelog
2023-10-31 13:40:12 -04:00