summaryrefslogtreecommitdiff
path: root/ext/crypto/shared.rs
AgeCommit message (Collapse)Author
2024-10-18refactor(ext/crypto): use concrete error types (#26167)Leo Kettmeir
2024-09-23feat(ext/crypto): import and export p521 keys (#25789)Divy Srivastava
Towards https://github.com/denoland/deno/issues/13449
2024-09-20fix(ext/crypto): ensure EC public keys are exported uncompressed (#25766)Divy Srivastava
Fixes https://github.com/denoland/deno/issues/18050
2024-01-01chore: update copyright to 2024 (#21753)David Sherret
2023-10-30chore: upgrade rsa to 0.9 (#21016)Divy Srivastava
2023-06-22refactor(serde_v8): split ZeroCopyBuf into JsBuffer and ToJsBuffer (#19566)Bartek IwaƄczuk
`ZeroCopyBuf` was convenient to use, but sometimes it did hide details that some copies were necessary in certain cases. Also it made it way to easy for the caller to pass around and convert into different values. This commit splits `ZeroCopyBuf` into `JsBuffer` (an array buffer coming from V8) and `ToJsBuffer` (a Rust buffer that will be converted into a V8 array buffer). As a result some magical conversions were removed (they were never used) limiting the API surface and preparing for changes in #19534.
2023-01-13chore: add `copyright_checker` tool and add the missing copyright (#17285)Yiyu Lin
2022-11-18chore: use Rust 1.65.0 (#16688)Aaron O'Mullan
2022-10-04fix(ext/crypto): interoperable import/export (#16153)Filip Skokan
This PR updates RSA key import/export to a state which is interoperable with other implementations. For RSA the only OID in and out is `rsaEncryption`. For EC the only OID in and out is `id-ecpublickey` (fixed in #16152). see https://github.com/w3c/webcrypto/issues/307#issuecomment-995813032 see https://github.com/w3c/webcrypto/issues/307 see https://github.com/w3c/webcrypto/pull/305 see https://github.com/nodejs/node/pull/42816
2022-09-19chore: fix clippy warnings (#15944)Ben Noordhuis
Stop allowing clippy::derive-partial-eq-without-eq and fix warnings about deriving PartialEq without also deriving Eq. In one case I removed the PartialEq because it a) wasn't necessary, and b) sketchy because it was comparing floating point numbers. IMO, that's a good argument for enforcing the lint rule, because it would most likely have been caught during review if it had been enabled.
2022-06-20chore(ext/crypto): update webcrypto deps (#14452)Divy Srivastava
2022-02-08fix(ext/crypto): support EC p256 private key material in exportKey (#13547)Divy Srivastava
Co-authored-by: Luca Casonato <hello@lcas.dev>
2022-01-19feat(ext/crypto): implement pkcs8/spki/jwk exportKey for ECDSA and ECDH (#13104)Sean Michael Wykes
2021-12-16feat(ext/crypto): support importing ECSDA and ECDH (#13088)Sean Michael Wykes
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-12-15refactor(ext/crypto): clean up encrypt rust code (#13094)Luca Casonato
2021-12-13refactor(ext/crypto): generateKey rust cleanup (#13069)Luca Casonato
2021-12-13refactor(ext/crypto): clean up exportKey rust code (#13052)Luca Casonato
2021-12-10refactor(ext/crypto): clean up rust side importKey (#13036)Luca Casonato
This commit cleans up the Rust side of `import_key` by using a bunch of enums instead of structs with "type" and "data" fields. This commit does add some duplicated code for the time being, because a lot of the other ops still need to get the same cleanup treatment.