Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should I access Boost SHA1 hash?

Tags:

c++

boost

sha1

I want to use boost::uuids::detail::sha1 to create a hash for a large binary blob.

See: boost uuid sha1

sha1 is in the detail namespace and as such should not be 'relied upon'. How can I create the SHA1 hash for my blob without instantiating objects in detail?

like image 432
jbcoe Avatar asked Jun 05 '12 02:06

jbcoe


1 Answers

Your choices are:

  • Use boost::uuids::detail::sha1, and if it changes in a future release, deal with it then.
  • Find another implementation of sha1 (say in Crypto++, for example), and use that.
like image 162
Marshall Clow Avatar answered Oct 07 '22 13:10

Marshall Clow