diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2022-03-16 00:33:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 00:33:46 +0100 |
commit | bd481bf095f920a419ea55543f911e087f98f36f (patch) | |
tree | b4f97aabfd3734770c5367b1253511a02d86af87 /ext/crypto/lib.rs | |
parent | 672f66dde1f7ec87282d37e10cac2cdd36e5f181 (diff) |
feat(ops): optional OpState (#13954)
Diffstat (limited to 'ext/crypto/lib.rs')
-rw-r--r-- | ext/crypto/lib.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/crypto/lib.rs b/ext/crypto/lib.rs index e45e3d272..a2dc8e626 100644 --- a/ext/crypto/lib.rs +++ b/ext/crypto/lib.rs @@ -17,9 +17,7 @@ use deno_core::ZeroCopyBuf; use serde::Deserialize; use shared::operation_error; -use std::cell::RefCell; use std::num::NonZeroU32; -use std::rc::Rc; use p256::elliptic_curve::sec1::FromEncodedPoint; use p256::pkcs8::FromPrivateKey; @@ -169,7 +167,6 @@ pub struct SignArg { #[op] pub async fn op_crypto_sign_key( - _state: Rc<RefCell<OpState>>, args: SignArg, zero_copy: ZeroCopyBuf, ) -> Result<ZeroCopyBuf, AnyError> { @@ -324,7 +321,6 @@ pub struct VerifyArg { #[op] pub async fn op_crypto_verify_key( - _state: Rc<RefCell<OpState>>, args: VerifyArg, zero_copy: ZeroCopyBuf, ) -> Result<bool, AnyError> { @@ -485,7 +481,6 @@ pub struct DeriveKeyArg { #[op] pub async fn op_crypto_derive_bits( - _state: Rc<RefCell<OpState>>, args: DeriveKeyArg, zero_copy: Option<ZeroCopyBuf>, ) -> Result<ZeroCopyBuf, AnyError> { @@ -807,7 +802,6 @@ pub fn op_crypto_random_uuid(state: &mut OpState) -> Result<String, AnyError> { #[op] pub async fn op_crypto_subtle_digest( - _state: Rc<RefCell<OpState>>, algorithm: CryptoHash, data: ZeroCopyBuf, ) -> Result<ZeroCopyBuf, AnyError> { @@ -831,7 +825,6 @@ pub struct WrapUnwrapKeyArg { #[op] pub fn op_crypto_wrap_key( - _state: &mut OpState, args: WrapUnwrapKeyArg, data: ZeroCopyBuf, ) -> Result<ZeroCopyBuf, AnyError> { @@ -861,7 +854,6 @@ pub fn op_crypto_wrap_key( #[op] pub fn op_crypto_unwrap_key( - _state: &mut OpState, args: WrapUnwrapKeyArg, data: ZeroCopyBuf, ) -> Result<ZeroCopyBuf, AnyError> { |