Gck.Session.prototype.encrypt
function encrypt(key: Gck.Object, mech_type: Number(gulong), input: ByteArray, cancellable: Gio.Cancellable): [return_value: ByteArray, n_result: Number(gsize)] { // Gjs wrapper for gck_session_encrypt() }
Encrypt data in a mechanism specific manner. This call may block for an indefinite period.
- key
The key to encrypt with.
- mech_type
The mechanism type to use for encryption.
- input
the data to encrypt
- cancellable
Optional cancellation object, or null
- return_value
the data that was encrypted, or null if an error occured.
- n_result
location to store the length of the result data