pub struct SecureWasmHashContext { /* private fields */ }Expand description
Secure WASM Hash Context
This context provides secure hash operations with:
- Consistent error handling using Result<T, JsValue>
- Security validation for all inputs
- Protection against timing attacks
- Memory safety with automatic cleanup
Implementations§
Trait Implementations§
Source§impl From<SecureWasmHashContext> for JsValue
impl From<SecureWasmHashContext> for JsValue
Source§fn from(value: SecureWasmHashContext) -> Self
fn from(value: SecureWasmHashContext) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SecureWasmHashContext
impl FromWasmAbi for SecureWasmHashContext
Source§impl IntoWasmAbi for SecureWasmHashContext
impl IntoWasmAbi for SecureWasmHashContext
Source§impl LongRefFromWasmAbi for SecureWasmHashContext
impl LongRefFromWasmAbi for SecureWasmHashContext
Source§type Abi = WasmPtr<WasmRefCell<SecureWasmHashContext>>
type Abi = WasmPtr<WasmRefCell<SecureWasmHashContext>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SecureWasmHashContext>
type Anchor = RcRef<SecureWasmHashContext>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl RefFromWasmAbi for SecureWasmHashContext
impl RefFromWasmAbi for SecureWasmHashContext
Source§type Abi = WasmPtr<WasmRefCell<SecureWasmHashContext>>
type Abi = WasmPtr<WasmRefCell<SecureWasmHashContext>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<SecureWasmHashContext>
type Anchor = RcRef<SecureWasmHashContext>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SecureWasmHashContext
impl RefMutFromWasmAbi for SecureWasmHashContext
Source§type Abi = WasmPtr<WasmRefCell<SecureWasmHashContext>>
type Abi = WasmPtr<WasmRefCell<SecureWasmHashContext>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SecureWasmHashContext>
type Anchor = RcRefMut<SecureWasmHashContext>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl VectorFromWasmAbi for SecureWasmHashContext
impl VectorFromWasmAbi for SecureWasmHashContext
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SecureWasmHashContext]>
Source§impl VectorIntoWasmAbi for SecureWasmHashContext
impl VectorIntoWasmAbi for SecureWasmHashContext
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SecureWasmHashContext]>) -> Self::Abi
Source§impl WasmDescribeVector for SecureWasmHashContext
impl WasmDescribeVector for SecureWasmHashContext
impl SupportsConstructor for SecureWasmHashContext
impl SupportsInstanceProperty for SecureWasmHashContext
impl SupportsStaticProperty for SecureWasmHashContext
Auto Trait Implementations§
impl Freeze for SecureWasmHashContext
impl !RefUnwindSafe for SecureWasmHashContext
impl Send for SecureWasmHashContext
impl Sync for SecureWasmHashContext
impl Unpin for SecureWasmHashContext
impl UnsafeUnpin for SecureWasmHashContext
impl !UnwindSafe for SecureWasmHashContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.