Gck.Session.prototype.derive_key

function derive_key(base: Gck.Object, mech_type: Number(gulong), attrs: Gck.Attributes, cancellable: Gio.Cancellable): Gck.Object {
    // Gjs wrapper for gck_session_derive_key()
}
  

Derive a key from another key. This call may block for an indefinite period.

If the attrs Gck.Attributes is floating, it is consumed.

base

The key to derive from.

mech_type

The mechanism to use for derivation.

attrs

Additional attributes for the derived key.

cancellable

Optional cancellation object, or NULL.

Returns

the new derived key or NULL if the operation failed