[Botan-devel] Solved! Botan Patch inside Re: potential problem with 'GOST 3410-2001' parameters, or with my code

Jack Lloyd lloyd at randombit.net
Tue Feb 1 14:55:38 EST 2011

On Thu, Jan 27, 2011 at 05:01:00PM +0100, bert hubert wrote:
> The unhashed original comes from:
> "www.example.net. 3600 IN A"
> The GOST R34.11 hash that is derived from the packed version of this
> original:
> MZ4PMD6Q8fjcUkfz7yrz9onmngpM/yuKS0u3jFct8pA=

Hi Bert,

Thanks for providing the test vector; once I get everything
confirmed then I will make the change in mainline so the next
release will have this fixed.

Having one problem though. Can you explain this step? I can't
replicate the hash value you provide:

   const byte msg[] = "www.example.net. 3600 IN A";

   HashFunction* h = global_state().algorithm_factory().make_hash_function("GOST-34.11");

   h->update(msg, strlen((const char*)msg));
   std::cout << base64_encode(h->final()) << "\n";

I see


rather than




More information about the botan-devel mailing list