encrypt_async


Description:

public async uint8[] encrypt_async (Object key, Mechanism mechanism, uint8[] input, Cancellable? cancellable) throws Error

Encrypt data in a mechanism specific manner.

This call will return immediately and complete asynchronously.

Parameters:

this

The session.

key

The key to encrypt with.

mechanism

The mechanism type and parameters to use for encryption.

input

the data to encrypt

cancellable

A GCancellable which can be used to cancel the operation.

callback

Called when the operation completes.

n_input

length of the data to encrypt

user_data

A pointer to pass to the callback.