Gck.Session.prototype.unwrap_key
function unwrap_key(wrapper: Gck.Object, mech_type: Number(gulong), input: ByteArray, attrs: Gck.Attributes, cancellable: Gio.Cancellable): Gck.Object { // Gjs wrapper for gck_session_unwrap_key() }
Unwrap a key from a byte stream. This call may block for an indefinite period.
If the attrs Gck.Attributes is floating, it is consumed.
- wrapper
The key to use for unwrapping.
- mech_type
The mechanism to use for unwrapping.
- input
the wrapped data as a byte stream
- attrs
Additional attributes for the unwrapped key.
- cancellable
Optional cancellation object, or NULL.
- Returns
the new unwrapped key or NULL if the operation failed