CryptoOperation object
Deprecated. A CryptoOperation object provides methods and events for initialization, processing data, and completing a cryptographic operation.
![]() |
DOM Information
Inheritance Hierarchy
The CryptoOperation does not inherit from any class or interface.Members
The CryptoOperation object has these types of members:
Events
The CryptoOperation object has these events.
| Event | Description |
|---|---|
| onabort |
Deprecated. Fired when the current cryptographic operation (CryptoOperation) is aborted. |
| oncomplete |
Deprecated.Fires when the current cryptographic operation completes. |
| onerror |
Deprecated.Fires when the current cryptographic operation encounters an error. |
| onprogress |
Deprecated.Fired periodically during the current cryptographic operation (CryptoOperation). |
Methods
The CryptoOperation object has these methods.
| Method | Description |
|---|---|
| abort |
Deprecated. Aborts the current CryptoOperation. |
| addEventListener |
Registers an event handler for the specified event type. |
| dispatchEvent |
Sends an event to the current element. |
| finish |
Deprecated. Requests that the current CryptoOperation be completed, with its result returned asynchronously. |
| process |
Deprecated. Requests that the current CryptoOperation cryptographically process the given data. |
| removeEventListener |
Removes an event handler that the addEventListener method registered. |
Properties
The CryptoOperation object has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only |
The KeyAlgorithm used to generate the cryptographic key. | |
| Read-only |
The Key object used to initialize the cryptographic operation (CryptoOperation). | |
| Read-only |
The result of the current cryptographic operation. |
Remarks
A CryptoOperation object is returned from the encrypt, decrypt, sign, verify, and digest methods of the subtle property. A CryptoOperation object provides methods and events for dealing with initialization, processing data, and completing the cryptographic operation, yielding the final output.
