--- engines/ccgost/gosthash.c.orig	2012-05-18 16:56:13.020213439 +0400
+++ engines/ccgost/gosthash.c	2012-05-18 16:43:33.048210789 +0400
@@ -241,6 +241,8 @@
 		fin_len+=ctx->left;
 		}
 	memset(buf,0,32);
+	if (fin_len==0)
+		hash_step(ctx->cipher_ctx,H,buf);
 	bptr=buf;
 	fin_len<<=3; /* Hash length in BITS!!*/
 	while(fin_len>0)
