Ошибку нашли в gostengy и исправили - https://www.cryptopro.ru/forum2/default.aspx?g=posts&m=97875#post97875