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

feat(extensions/crypto): implement generateKey() & sign() #9614

Merged
merged 166 commits into from
Jul 6, 2021
Merged
Show file tree
Hide file tree
Changes from 160 commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
662aa06
ok so
littledivy Feb 25, 2021
a337d42
interestingg...hmm
littledivy Feb 25, 2021
b5b8688
x
littledivy Feb 25, 2021
eb3bc2f
rsa
littledivy Feb 26, 2021
38f6075
hmac
littledivy Feb 26, 2021
f29745a
Ecdsa
littledivy Feb 26, 2021
ca6f1f5
ecdh
littledivy Feb 26, 2021
36f332a
CryptoKey class .. hmm
littledivy Feb 26, 2021
78c34e2
rename algo fields
littledivy Feb 26, 2021
b075a6d
sign
littledivy Feb 26, 2021
88369fe
hmac signing
littledivy Feb 26, 2021
c9d4e20
Merge branch 'master' into op_crates/crypto/generateKey
littledivy Feb 26, 2021
5815375
works
littledivy Feb 26, 2021
cf75570
wip
littledivy Feb 27, 2021
dfc263b
Merge branch 'master' into op_crates/crypto/generateKey
littledivy Feb 27, 2021
cd22635
into trait
littledivy Feb 28, 2021
b125e5e
async
littledivy Feb 28, 2021
951060e
JSKey
littledivy Feb 28, 2021
e71bfff
Merge branch 'master' into op_crates/crypto/generateKey
littledivy Mar 1, 2021
b0335e9
Rsa::generate_with_exp
littledivy Mar 2, 2021
473f957
fix key pair logic
littledivy Mar 2, 2021
c29f736
progress
littledivy Mar 2, 2021
a33fbc7
impl sign
littledivy Mar 2, 2021
869171a
cleanup and error handling
littledivy Mar 3, 2021
139dc92
ok
littledivy Mar 3, 2021
7b8c546
Merge branch 'master' into op_crates/crypto/generateKey
littledivy Mar 3, 2021
6c78ed9
validate usage
littledivy Mar 3, 2021
2c8e18e
fix: pss instead of oaep for signing
littledivy Mar 3, 2021
6801c5b
types
littledivy Mar 3, 2021
00a97d8
fix lint
littledivy Mar 4, 2021
73c8ad5
undo changes to lib.dom
littledivy Mar 4, 2021
8abd7bb
Merge branch 'master' into op_crates/crypto/generateKey
littledivy Mar 4, 2021
8c8ef05
fix example
littledivy Mar 4, 2021
a458bc1
fix lint
littledivy Mar 4, 2021
30f3af3
validate hash
littledivy Mar 4, 2021
cd821f3
x
littledivy Mar 4, 2021
2a345b4
fix fmt
littledivy Mar 4, 2021
58bd0e6
fix lint
littledivy Mar 4, 2021
fca966b
start unit tests wip
littledivy Mar 5, 2021
ff5b72f
public exponent
littledivy Mar 5, 2021
be19cac
fix lint js
littledivy Mar 5, 2021
a6143ce
fix(lint): use is_empty()
littledivy Mar 5, 2021
29e268d
Merge branch 'master' into op_crates/crypto/generateKey
littledivy Mar 5, 2021
b3238d0
fix pass empty uint8array
littledivy Mar 5, 2021
7a77aa4
x
littledivy Mar 5, 2021
0fa956b
add tests
littledivy Mar 6, 2021
756583f
how on earth did i forget cargo fmt
littledivy Mar 6, 2021
fda1c6b
spawn blocking for key generation
littledivy Mar 7, 2021
85d20d5
use macro to auto impl resource
littledivy Mar 7, 2021
2847fba
x
littledivy Mar 7, 2021
d7f076a
fix use Uint8Array type for publicModulus
littledivy Mar 7, 2021
25b60d1
nice little readme
littledivy Mar 7, 2021
327b3bf
fix(tests): close crypto key resources
littledivy Mar 8, 2021
3cfccad
normalize hash.name
littledivy Mar 8, 2021
6d07749
x
littledivy Mar 8, 2021
d453386
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Mar 10, 2021
45eb11d
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Mar 16, 2021
a33d646
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Mar 21, 2021
ce68fcc
merge main
littledivy Mar 27, 2021
0feb8f2
merge
littledivy Mar 27, 2021
c50e411
fix fmt
littledivy Mar 27, 2021
af2e3ce
fix clippy just got new lint rules
littledivy Mar 27, 2021
108ef59
fix more lints
littledivy Mar 27, 2021
8315c48
fix hash name normalisation
littledivy Mar 28, 2021
4927c1c
fmt
littledivy Mar 28, 2021
79a9734
RSA 0.8.0
littledivy Mar 29, 2021
c710979
fix cargo lock
littledivy Mar 29, 2021
35b7282
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Mar 29, 2021
83a754b
generateKey WPT
littledivy Mar 30, 2021
c423dca
fix lint
littledivy Mar 30, 2021
0b48328
update wpt
littledivy Mar 30, 2021
8b9b4b9
fix sign: normalize correctly
littledivy Mar 30, 2021
15b3278
fix
littledivy Mar 30, 2021
a1a9e1e
update wpt
littledivy Mar 31, 2021
d5e0a47
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 1, 2021
cbf9800
fix serde::Value
littledivy Apr 1, 2021
f3fb477
update expectations for new wpt
littledivy Apr 2, 2021
20fb8a9
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 2, 2021
455fe31
fmt
littledivy Apr 2, 2021
38f1eb7
merge
littledivy Apr 2, 2021
f4aee8e
fix(wpt/streams): ignore failure
littledivy Apr 4, 2021
02f42ef
maybe fix wpt
littledivy Apr 4, 2021
f6ca199
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 6, 2021
78431ec
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 8, 2021
c0beb2f
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 8, 2021
8fb184f
re-run CI
littledivy Apr 8, 2021
cebc489
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 8, 2021
abf9645
cleanup
littledivy Apr 8, 2021
c9f158c
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 11, 2021
31c289b
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 20, 2021
53b4e12
chore: rename reg_json_async -> reg_async
littledivy Apr 20, 2021
12ede5a
merge: use opAsync
littledivy Apr 20, 2021
ec4292f
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Apr 21, 2021
091da36
fix CI
littledivy Apr 21, 2021
e9ebf05
fix(ci): update Cargo.lock
littledivy Apr 21, 2021
50ba4cd
retry ci
littledivy Apr 21, 2021
78eb317
Merge branch 'main' into op_crates/crypto/generateKey
littledivy May 17, 2021
ae4a9aa
fix(merge): register op
littledivy May 17, 2021
c9e2795
Merge branch 'main' into op_crates/crypto/generateKey
littledivy May 17, 2021
f727047
Merge branch 'main' into op_crates/crypto/generateKey
littledivy May 18, 2021
29eba82
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Jun 4, 2021
c857208
update lock
littledivy Jun 4, 2021
4f3f2dd
bump tokio
littledivy Jun 5, 2021
89696c6
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Jun 5, 2021
8559859
update expectations
littledivy Jun 5, 2021
972db5b
Remove custom errors and enable wpt
littledivy Jun 5, 2021
1551f6f
Merge remote-tracking branch 'upstream/main' into op_crates/crypto/ge…
littledivy Jun 5, 2021
d4f5202
fix(RSA): whitelist good public exponents
littledivy Jun 5, 2021
4c9599f
update expectations
littledivy Jun 5, 2021
141f531
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Jun 5, 2021
a2103a5
update expectations
littledivy Jun 5, 2021
df12f93
Merge branch 'op_crates/crypto/generateKey' of https://github.com/lit…
littledivy Jun 5, 2021
026fda4
Merge remote-tracking branch 'upstream/main' into op_crates/crypto/ge…
littledivy Jun 6, 2021
de0a3e2
fix: expose CryptoKey
littledivy Jun 6, 2021
80e7c7c
fix lint
littledivy Jun 6, 2021
bada218
update wpt expectations
littledivy Jun 6, 2021
131ea77
Merge remote-tracking branch 'upstream/main' into op_crates/crypto/ge…
littledivy Jun 6, 2021
28052f0
fix
littledivy Jun 6, 2021
b50f360
fmt
littledivy Jun 6, 2021
543e652
fix types
littledivy Jun 6, 2021
57cfe8f
update wpt expectations
littledivy Jun 6, 2021
0b88bf4
wip webidl migration
littledivy Jun 6, 2021
55f5dbc
Update 01_crypto.js
littledivy Jun 6, 2021
475ba62
Merge branch 'denoland:main' into op_crates/crypto/generateKey
littledivy Jun 7, 2021
26225cd
Merge branch 'main' into op_crates/crypto/generateKey
littledivy Jun 7, 2021
7897232
more webidl progress
littledivy Jun 7, 2021
ee0f397
fix lint
littledivy Jun 7, 2021
05f6cca
remove unit tests cuz no we have wpt
littledivy Jun 7, 2021
d3982aa
fix wpt
littledivy Jun 7, 2021
887e2b3
fix
littledivy Jun 7, 2021
b2864ae
fix lint
littledivy Jun 7, 2021
14e23b1
update expectation
littledivy Jun 7, 2021
68a8d59
update expectations
littledivy Jun 8, 2021
5d42e57
tweak converters
littledivy Jun 8, 2021
4876d91
finally :)
littledivy Jun 8, 2021
8311e76
re-add resource leak tests
littledivy Jun 8, 2021
d5c7d56
finish webidl migration
littledivy Jun 9, 2021
371c1cf
redo without resource table
littledivy Jun 24, 2021
19e99ba
some fies
littledivy Jun 24, 2021
62393c7
Make WPT pass after redo
littledivy Jun 25, 2021
fb0871e
fix warnings
littledivy Jun 25, 2021
ae5bdb3
fix dlint
littledivy Jun 25, 2021
9eacbfb
yikes..typo
littledivy Jun 25, 2021
1d4463d
update expectations
littledivy Jun 25, 2021
e6f3861
apply webidl suggestions
littledivy Jun 25, 2021
fb7940e
fixes
littledivy Jun 25, 2021
154ba41
update
littledivy Jun 25, 2021
30d12e6
sign: normalise after converters
littledivy Jun 25, 2021
dcb2aff
chore: move converters before algorithm steps
littledivy Jun 26, 2021
a8c2012
cleanup
littledivy Jun 27, 2021
e6b5dcf
re run CI
littledivy Jun 29, 2021
083282c
Merge remote-tracking branch 'origin/main' into op_crates/crypto/gene…
lucacasonato Jun 30, 2021
a172782
rework js glue code
lucacasonato Jul 1, 2021
8911678
wip
lucacasonato Jul 2, 2021
4acd030
Merge remote-tracking branch 'origin/main' into op_crates/crypto/gene…
lucacasonato Jul 2, 2021
aa62b79
fixes
lucacasonato Jul 2, 2021
07ed948
lint
lucacasonato Jul 2, 2021
81de36f
add todo
lucacasonato Jul 2, 2021
3ee3357
fix
lucacasonato Jul 2, 2021
b6cd4d2
chore: import convention
littledivy Jul 3, 2021
3f94c38
merge
littledivy Jul 4, 2021
9e57849
fmt
littledivy Jul 4, 2021
7c2e9df
bump sha-1 to 0.9.6 and sha2 to 0.9.5
littledivy Jul 4, 2021
f77b119
Merge branch 'main' into op_crates/crypto/generateKey
bartlomieju Jul 6, 2021
4295c94
use From<> instead of TryInto<>
bartlomieju Jul 6, 2021
4a51630
reset CI
bartlomieju Jul 6, 2021
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
193 changes: 178 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading