Gck.Session.prototype.decrypt

function decrypt(key: Gck.Object, mech_type: Number(gulong), input: ByteArray, cancellable: Gio.Cancellable): [return_value: ByteArray, n_result: Number(gsize)] {
    // Gjs wrapper for gck_session_decrypt()
}
  

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

key

The key to decrypt with.

mech_type

The mechanism type to use for decryption.

input

data to decrypt

cancellable

Optional cancellation object, or null

return_value

the data that was decrypted, or NULL if an error occured

n_result

location to store the length of the result data