X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fprotocol.c;h=06e0efd08f59b82b8e41110cc0d1d585afdace17;hb=32fd2624bef1d1e64b3250d7ff8475db043fd4a5;hp=4444a8b31df389d27d28f6e8ac60831f70b990d7;hpb=b3bb2c3a975b7b02ece7db077cb68b230b3d6fb5;p=silc.git diff --git a/lib/silcclient/protocol.c b/lib/silcclient/protocol.c index 4444a8b3..06e0efd0 100644 --- a/lib/silcclient/protocol.c +++ b/lib/silcclient/protocol.c @@ -351,10 +351,13 @@ SILC_TASK_CALLBACK(silc_client_protocol_key_exchange) * End protocol */ SilcSKEKeyMaterial *keymat; + int key_len = silc_cipher_get_key_len(ctx->ske->prop->cipher, NULL); + int hash_len = ctx->ske->prop->hash->hash->hash_len; /* Process the key material */ keymat = silc_calloc(1, sizeof(*keymat)); - silc_ske_process_key_material(ctx->ske, 16, (16 * 8), 16, keymat); + silc_ske_process_key_material(ctx->ske, 16, key_len, hash_len, + keymat); /* Take the negotiated keys into use. */ silc_client_protocol_ke_set_keys(ctx->ske, ctx->sock, keymat,