Function silc_ske_process_key_material_data
SYNOPSIS
SilcSKEStatus
silc_ske_process_key_material_data(unsigned char *data,
SilcUInt32 data_len,
SilcUInt32 req_iv_len,
SilcUInt32 req_enc_key_len,
SilcUInt32 req_hmac_key_len,
SilcHash hash,
SilcSKEKeyMaterial *key);
DESCRIPTION
This function is equivalent to silc_ske_process_key_material, except
that the caller provides the raw key material as argument, the `data'
and `data_len'. This is special utility function provided for the
application, if it needs to generate key material as the protocol
defines for some other purpose than strictly SILC session key usage.
Hence, this function can be used outside SKE protocol to just produce
key material from some raw data. The `hash' is a hash algorithm that
is used as part of key processing, and caller must provide it.
|