ROBODoc documented the SILC Hash Interface and improved
[silc.git] / lib / silcske / silcske.c
index 756d505d52f78f536c822ee02494d2839aa5c159..5e277b838b142c7008c51397d677e2cd52f6c8d0 100644 (file)
@@ -1695,7 +1695,7 @@ static SilcSKEStatus silc_ske_make_hash(SilcSKE ske,
 
   /* Make the hash */
   silc_hash_make(ske->prop->hash, buf->data, buf->len, return_hash);
-  *return_hash_len = ske->prop->hash->hash->hash_len;
+  *return_hash_len = silc_hash_len(ske->prop->hash);
 
   if (initiator == FALSE) {
     SILC_LOG_HEXDUMP(("HASH"), return_hash, *return_hash_len);