Gck.Session.prototype.encrypt_full

function encrypt_full(key: Gck.Object, mechanism: Gck.Mechanism, input: ByteArray, cancellable: Gio.Cancellable): [return_value: ByteArray, n_result: Number(gsize)] {
    // Gjs wrapper for gck_session_encrypt_full()
}
  

Encrypt data in a mechanism specific manner. This call may block for an indefinite period.

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.

return_value

the data that was encrypted, or null if an error occured

n_result

location to store the length of the result data