Gck.Session.prototype.encrypt_async

function encrypt_async(key: Gck.Object, mechanism: Gck.Mechanism, input: ByteArray, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for gck_session_encrypt_async()
}
  

Encrypt data in a mechanism specific manner. This call will return immediately and complete asynchronously.

key

The key to encrypt with.

mechanism

The mechanism type and parameters to use for encryption.

input

the data to encrypt

cancellable

A GCancellable which can be used to cancel the operation.

callback

Called when the operation completes.