Gck.Session.prototype.wrap_key

function wrap_key(wrapper: Gck.Object, mech_type: Number(gulong), wrapped: Gck.Object, cancellable: Gio.Cancellable): [return_value: ByteArray, n_result: Number(gsize)] {
    // Gjs wrapper for gck_session_wrap_key()
}
  

Wrap a key into a byte stream. This call may block for an indefinite period.

wrapper

The key to use for wrapping.

mech_type

The mechanism type to use for wrapping.

wrapped

The key to wrap.

cancellable

A Gio.Cancellable or null

return_value

the wrapped data or null if the operation failed

n_result

A location in which to return the length of the wrapped data.