Extends
BaseCryptoClass
Constructors
new WrappingContext()
new WrappingContext(): WrappingContext
Returns
WrappingContextMethods
unwrap()
unwrap(wrapped:Unwrap (decrypt) a previously wrapped key or sensitive data and return the unwrapped data.ArrayBuffer):Promise<ArrayBuffer>
Parameters
wrapped
ArrayBuffer
The wrapped (encrypted) key or data to be
unwrapped.
Throws
SecurityErrorIf the unwrapping operation fails.
Returns
Promise<ArrayBuffer>
Promise<ArrayBuffer> A promise that resolves to the unwrapped
(decrypted) key or data.
wrap()
wrap(unwrapped:Wrap (encrypt) a key or sensitive data and return the wrapped data.ArrayBuffer):Promise<ArrayBuffer>
Parameters
unwrapped
ArrayBuffer
The key or data to be wrapped.
Throws
SecurityErrorIf the wrapping operation fails.
Returns
Promise<ArrayBuffer>
Promise<ArrayBuffer> A promise that resolves to the wrapped
(encrypted) key or data.
